@duque.edits/sdk 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/{index-xkfp9hFj.d.ts → index-BAy2XOWP.d.ts} +7 -8
  2. package/dist/index.d.ts +1 -1
  3. package/dist/managers/automaticmessage/AutomaticMessageManager.d.ts +1 -1
  4. package/dist/managers/base.d.ts +1 -1
  5. package/dist/managers/bet/GuildBetManager.d.ts +1 -1
  6. package/dist/managers/betuser/GuildBetUserManager.d.ts +1 -1
  7. package/dist/managers/buffer/BufferManager.d.ts +1 -1
  8. package/dist/managers/guild/GuildManager.d.ts +1 -1
  9. package/dist/managers/index.d.ts +1 -1
  10. package/dist/managers/logs/LogManager.d.ts +1 -1
  11. package/dist/managers/match/GuildMatchManager.d.ts +1 -1
  12. package/dist/managers/mediator/GuildMediatorManager.d.ts +1 -1
  13. package/dist/managers/message/MessagesManager.d.ts +1 -1
  14. package/dist/managers/minesgame/MinesGameManager.d.ts +1 -1
  15. package/dist/managers/permission/GuildPermissionManager.d.ts +1 -1
  16. package/dist/managers/player/PlayerManager.d.ts +1 -1
  17. package/dist/managers/product/ProductManager.d.ts +1 -1
  18. package/dist/managers/shop/ShopManager.d.ts +1 -1
  19. package/dist/managers/ticket/TicketManager.d.ts +1 -1
  20. package/dist/managers/ticketpanel/TicketPanelManager.d.ts +1 -1
  21. package/dist/managers/tournament/TournamentManager.d.ts +1 -1
  22. package/dist/managers/user/GuildUserManager.d.ts +1 -1
  23. package/dist/managers/user/GuildUserManager.js +7 -1
  24. package/dist/managers/vipmember/VipMemberManager.d.ts +1 -1
  25. package/dist/rest/REST.d.ts +1 -1
  26. package/dist/rest/index.d.ts +1 -1
  27. package/dist/structures/automaticmessage/AutomaticMessage.d.ts +1 -1
  28. package/dist/structures/bet/GuildBet.d.ts +1 -1
  29. package/dist/structures/betuser/GuildBetUser.d.ts +1 -1
  30. package/dist/structures/guild/Guild.d.ts +1 -1
  31. package/dist/structures/guild/Guild.js +38 -12
  32. package/dist/structures/index.d.ts +1 -1
  33. package/dist/structures/logentry/LogEntry.d.ts +1 -1
  34. package/dist/structures/match/GuildMatch.d.ts +1 -1
  35. package/dist/structures/mediator/GuildMediator.d.ts +1 -1
  36. package/dist/structures/minesgame/MinesGame.d.ts +1 -1
  37. package/dist/structures/product/Product.d.ts +1 -1
  38. package/dist/structures/shop/Shop.d.ts +1 -1
  39. package/dist/structures/ticket/Ticket.d.ts +1 -1
  40. package/dist/structures/ticketpanel/TicketPanel.d.ts +1 -1
  41. package/dist/structures/tournament/Tournament.d.ts +1 -1
  42. package/dist/structures/user/GuildUser.d.ts +1 -1
  43. package/dist/structures/vipmember/VipMember.d.ts +1 -1
  44. package/dist/types/RestTypes.d.ts +1 -1
  45. package/dist/types/api/APIAutomaticMessage.d.ts +1 -1
  46. package/dist/types/api/APIGuild.d.ts +1 -1
  47. package/dist/types/api/APIGuild.js +3 -1
  48. package/dist/types/api/APIGuildBet.d.ts +1 -1
  49. package/dist/types/api/APIGuildBetUser.d.ts +1 -1
  50. package/dist/types/api/APIGuildGroupedChannel.d.ts +1 -1
  51. package/dist/types/api/APIGuildMatch.d.ts +1 -1
  52. package/dist/types/api/APIGuildUser.d.ts +1 -1
  53. package/dist/types/api/APITicketPanel.d.ts +1 -1
  54. package/dist/types/api/index.d.ts +1 -1
  55. package/dist/types/index.d.ts +1 -1
  56. package/package.json +1 -1
@@ -114,7 +114,9 @@ declare enum GuildChannelsType {
114
114
  ManagingLogs = "managing_logs",
115
115
  NormalQueue = "normal_queue",
116
116
  ChallengeQueue = "challenge_queue",
117
- MatchTextChannelParent = "match_text_channel_parent",
117
+ NormalMatchTextChannelParent = "normal_match_text_channel_parent",
118
+ BetMatchTextChannelParent = "bet_match_text_channel_parent",
119
+ ChallengeMatchTextChannelParent = "challenge_match_text_channel_parent",
118
120
  VoiceChannelMatchCreation = "voice_channel_match_creation",
119
121
  WaitingVC = "waiting_vc",
120
122
  BetMobileCategory = "bet_mobile_category",
@@ -142,8 +144,6 @@ interface APIGuild {
142
144
  status: GuildStatus;
143
145
  /** Guild Channel */
144
146
  channels: APIGuildGroupedChannel[];
145
- /** Guild Categories */
146
- categories: APIGuildGroupedChannel[];
147
147
  /** Guild Prefix */
148
148
  prefix: string;
149
149
  prefixes: string[];
@@ -159,9 +159,6 @@ interface APIGuild {
159
159
  coin_symbol: string;
160
160
  roulette_settings: RouletteSettings;
161
161
  webhook_urls: GuildLogsWebhookUrls;
162
- autorole_config: {
163
- role: string;
164
- };
165
162
  match_count: number;
166
163
  bet_count: number;
167
164
  }
@@ -283,7 +280,7 @@ interface APIGuildBetUser {
283
280
  }
284
281
 
285
282
  type MatchSelection = {
286
- type: "creator" | "mvps" | "winners";
283
+ type: "creator" | "mvps" | "winners" | "rematch";
287
284
  selected: string[];
288
285
  confirmed: string[];
289
286
  };
@@ -1406,6 +1403,7 @@ declare class Guild {
1406
1403
  matches: GuildMatchManager;
1407
1404
  /** Guild Prices Used */
1408
1405
  prices: GuildPrices;
1406
+ max_advert_per_user: number;
1409
1407
  permissionsManager: GuildPermissionManager;
1410
1408
  buffer: BufferManager;
1411
1409
  vipMembers: VipMemberManager;
@@ -1458,7 +1456,8 @@ declare class Guild {
1458
1456
  setPrefixes(prefixes: string | string[]): Promise<this>;
1459
1457
  toggleDailyCategory(category: keyof Omit<Daily, "date">): Promise<this>;
1460
1458
  setScores(name: AvailableScores, amount: number): Promise<this>;
1461
- toggleMode(mode: "1v1" | "2v2" | "3v3" | "4v4" | "5v5" | "6v6"): Promise<this>;
1459
+ toggleMode(...mode: BaseMatchModes[]): Promise<this>;
1460
+ toJSON(): APIGuild;
1462
1461
  }
1463
1462
  type AvailableScores = "win" | "loss" | "mvp" | "creator" | "coin";
1464
1463
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as APIAutomaticMessage, a as APIGuild, b as APIGuildBet, c as APIGuildBetUser, d as APIGuildGroupedChannel, e as APIGuildMatch, f as APIGuildUser, g as APITicketCategory, h as APITicketPanel, i as Accessory, j as AutomaticMessage, k as AutomaticMessageManager, l as AutomaticMessagesTypes, B as BETSTATUS, m as Banner, n as BaseManager, o as BaseMatchModes, p as BaseMatchStatus, q as BetChannelTypes, r as BetQueue, s as BufferManager, t as BufferMatch, u as BufferTicket, C as Confirm, D as Daily, v as DailyCategories, F as FetchOptions, w as FetchReturn, G as Guild, x as GuildBet, y as GuildBetManager, z as GuildBetUser, E as GuildBetUserManager, H as GuildChannelsType, I as GuildLogsWebhookUrls, J as GuildManager, K as GuildMatch, L as GuildMatchChannelsType, M as GuildMatchManager, N as GuildMatchMessagesType, O as GuildMediator, P as GuildMediatorManager, Q as GuildModes, S as GuildPermissionManager, T as GuildPrices, U as GuildScores, V as GuildStatus, W as GuildStatusEnum, X as GuildTicket, Y as GuildTicketConfiguration, Z as GuildTicketManager, _ as GuildUser, $ as GuildUserManager, a0 as LogEntry, a1 as LogManager, a2 as LogMessage, a3 as Logs, a4 as MATCHSTATUS, a5 as MATCHTYPES, a6 as MatchSelection, a7 as MessagesManager, a8 as MinesGame, a9 as MinesGameManager, aa as Optional, ab as OriginalChannel, ac as OriginalChannels, ad as PlayerManager, ae as PlayerOption, af as Product, ag as Profile, ah as ProfileCard, R as REST, ai as RequestOptions, aj as RestEvents, ak as RoulettePrize, al as RouletteSettings, am as STATES, an as Shop, ao as ShopManager, ap as StatusResponse, aq as Structure, ar as TicketPanel, as as TicketPanelManager, at as Tournament, au as TournamentManager, av as UserAccessoryType, aw as VipMember, ax as VipMemberManager } from './index-xkfp9hFj.js';
1
+ export { A as APIAutomaticMessage, a as APIGuild, b as APIGuildBet, c as APIGuildBetUser, d as APIGuildGroupedChannel, e as APIGuildMatch, f as APIGuildUser, g as APITicketCategory, h as APITicketPanel, i as Accessory, j as AutomaticMessage, k as AutomaticMessageManager, l as AutomaticMessagesTypes, B as BETSTATUS, m as Banner, n as BaseManager, o as BaseMatchModes, p as BaseMatchStatus, q as BetChannelTypes, r as BetQueue, s as BufferManager, t as BufferMatch, u as BufferTicket, C as Confirm, D as Daily, v as DailyCategories, F as FetchOptions, w as FetchReturn, G as Guild, x as GuildBet, y as GuildBetManager, z as GuildBetUser, E as GuildBetUserManager, H as GuildChannelsType, I as GuildLogsWebhookUrls, J as GuildManager, K as GuildMatch, L as GuildMatchChannelsType, M as GuildMatchManager, N as GuildMatchMessagesType, O as GuildMediator, P as GuildMediatorManager, Q as GuildModes, S as GuildPermissionManager, T as GuildPrices, U as GuildScores, V as GuildStatus, W as GuildStatusEnum, X as GuildTicket, Y as GuildTicketConfiguration, Z as GuildTicketManager, _ as GuildUser, $ as GuildUserManager, a0 as LogEntry, a1 as LogManager, a2 as LogMessage, a3 as Logs, a4 as MATCHSTATUS, a5 as MATCHTYPES, a6 as MatchSelection, a7 as MessagesManager, a8 as MinesGame, a9 as MinesGameManager, aa as Optional, ab as OriginalChannel, ac as OriginalChannels, ad as PlayerManager, ae as PlayerOption, af as Product, ag as Profile, ah as ProfileCard, R as REST, ai as RequestOptions, aj as RestEvents, ak as RoulettePrize, al as RouletteSettings, am as STATES, an as Shop, ao as ShopManager, ap as StatusResponse, aq as Structure, ar as TicketPanel, as as TicketPanelManager, at as Tournament, au as TournamentManager, av as UserAccessoryType, aw as VipMember, ax as VipMemberManager } from './index-BAy2XOWP.js';
2
2
  export { Collection } from './structures/Collection.js';
3
3
  export { APIEndpoint, APIEndpoints } from './rest/APIEndpoints.js';
4
4
  export { Routes } from './rest/Routes.js';
@@ -1,4 +1,4 @@
1
- export { k as AutomaticMessageManager } from '../../index-xkfp9hFj.js';
1
+ export { k as AutomaticMessageManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { n as BaseManager } from '../index-xkfp9hFj.js';
1
+ export { n as BaseManager } from '../index-BAy2XOWP.js';
2
2
  import '../structures/Collection.js';
3
3
  import '../types/api/APIAdvert.js';
4
4
  import '../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { F as FetchOptions, y as GuildBetManager } from '../../index-xkfp9hFj.js';
1
+ export { F as FetchOptions, y as GuildBetManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { E as GuildBetUserManager } from '../../index-xkfp9hFj.js';
1
+ export { E as GuildBetUserManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -1,5 +1,5 @@
1
1
  import '../../structures/Collection.js';
2
- export { s as BufferManager, t as BufferMatch, u as BufferTicket } from '../../index-xkfp9hFj.js';
2
+ export { s as BufferManager, t as BufferMatch, u as BufferTicket } from '../../index-BAy2XOWP.js';
3
3
  import '../../types/api/APIGuildTicket.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { J as GuildManager } from '../../index-xkfp9hFj.js';
1
+ export { J as GuildManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { k as AutomaticMessageManager, n as BaseManager, s as BufferManager, t as BufferMatch, u as BufferTicket, F as FetchOptions, w as FetchReturn, y as GuildBetManager, E as GuildBetUserManager, J as GuildManager, M as GuildMatchManager, P as GuildMediatorManager, S as GuildPermissionManager, Z as GuildTicketManager, $ as GuildUserManager, a1 as LogManager, a7 as MessagesManager, a9 as MinesGameManager, ad as PlayerManager, ae as PlayerOption, ao as ShopManager, aq as Structure, as as TicketPanelManager, au as TournamentManager, ax as VipMemberManager } from '../index-xkfp9hFj.js';
1
+ export { k as AutomaticMessageManager, n as BaseManager, s as BufferManager, t as BufferMatch, u as BufferTicket, F as FetchOptions, w as FetchReturn, y as GuildBetManager, E as GuildBetUserManager, J as GuildManager, M as GuildMatchManager, P as GuildMediatorManager, S as GuildPermissionManager, Z as GuildTicketManager, $ as GuildUserManager, a1 as LogManager, a7 as MessagesManager, a9 as MinesGameManager, ad as PlayerManager, ae as PlayerOption, ao as ShopManager, aq as Structure, as as TicketPanelManager, au as TournamentManager, ax as VipMemberManager } from '../index-BAy2XOWP.js';
2
2
  import '../types/api/APIAdvert.js';
3
3
  import '../types/api/APIBaseChannel.js';
4
4
  import '../types/api/APIBetChannel.js';
@@ -1,4 +1,4 @@
1
- export { a1 as LogManager } from '../../index-xkfp9hFj.js';
1
+ export { a1 as LogManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APILogEntry.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { M as GuildMatchManager } from '../../index-xkfp9hFj.js';
1
+ export { M as GuildMatchManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { P as GuildMediatorManager } from '../../index-xkfp9hFj.js';
1
+ export { P as GuildMediatorManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildMediator.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { a7 as MessagesManager } from '../../index-xkfp9hFj.js';
1
+ export { a7 as MessagesManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIMessage.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { a9 as MinesGameManager } from '../../index-xkfp9hFj.js';
1
+ export { a9 as MinesGameManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIMinesGame.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { S as GuildPermissionManager } from '../../index-xkfp9hFj.js';
1
+ export { S as GuildPermissionManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../types/api/APIGuildPermissions.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -1,5 +1,5 @@
1
1
  import '../../types/api/APIPlayer.js';
2
- export { ad as PlayerManager, ae as PlayerOption, aq as Structure } from '../../index-xkfp9hFj.js';
2
+ export { ad as PlayerManager, ae as PlayerOption, aq as Structure } from '../../index-BAy2XOWP.js';
3
3
  import '../../structures/Collection.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { ay as ProductManager } from '../../index-xkfp9hFj.js';
1
+ export { ay as ProductManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIProduct.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { ao as ShopManager } from '../../index-xkfp9hFj.js';
1
+ export { ao as ShopManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildShop.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { Z as GuildTicketManager } from '../../index-xkfp9hFj.js';
1
+ export { Z as GuildTicketManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildTicket.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { w as FetchReturn, as as TicketPanelManager } from '../../index-xkfp9hFj.js';
1
+ export { w as FetchReturn, as as TicketPanelManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { au as TournamentManager } from '../../index-xkfp9hFj.js';
1
+ export { au as TournamentManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APITournament.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,5 +1,5 @@
1
1
  import '../../structures/Collection.js';
2
- export { $ as GuildUserManager } from '../../index-xkfp9hFj.js';
2
+ export { $ as GuildUserManager } from '../../index-BAy2XOWP.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
@@ -60,7 +60,13 @@ class GuildUserManager extends import_base.BaseManager {
60
60
  async updateMany(...users) {
61
61
  users = users.map((a) => {
62
62
  const user = this.cache.get(a.id);
63
- return { ...user.toJSON(), ...user.userDailyWrapper(a) };
63
+ const userWrapped = user.userDailyWrapper(a);
64
+ return {
65
+ ...user.toJSON(),
66
+ daily: userWrapped.daily,
67
+ consecutive_wins: userWrapped.consecutive_wins,
68
+ wins: userWrapped.wins
69
+ };
64
70
  });
65
71
  const url = this.base_url;
66
72
  const response = await this.rest.request({
@@ -1,4 +1,4 @@
1
- export { ax as VipMemberManager } from '../../index-xkfp9hFj.js';
1
+ export { ax as VipMemberManager } from '../../index-BAy2XOWP.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIVipMember.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,5 +1,5 @@
1
1
  import 'events';
2
- export { R as REST } from '../index-xkfp9hFj.js';
2
+ export { R as REST } from '../index-BAy2XOWP.js';
3
3
  import '../structures/Collection.js';
4
4
  import '../types/api/APIAdvert.js';
5
5
  import '../types/api/APIBaseChannel.js';
@@ -1,6 +1,6 @@
1
1
  export { APIEndpoint, APIEndpoints } from './APIEndpoints.js';
2
2
  export { Routes } from './Routes.js';
3
- export { R as REST } from '../index-xkfp9hFj.js';
3
+ export { R as REST } from '../index-BAy2XOWP.js';
4
4
  import '../structures/Collection.js';
5
5
  import '../types/api/APIAdvert.js';
6
6
  import '../types/api/APIBaseChannel.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { j as AutomaticMessage } from '../../index-xkfp9hFj.js';
2
+ export { j as AutomaticMessage } from '../../index-BAy2XOWP.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
@@ -1,4 +1,4 @@
1
- export { x as GuildBet } from '../../index-xkfp9hFj.js';
1
+ export { x as GuildBet } from '../../index-BAy2XOWP.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APIBetChannel.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { z as GuildBetUser } from '../../index-xkfp9hFj.js';
1
+ export { z as GuildBetUser } from '../../index-BAy2XOWP.js';
2
2
  import '../../types/api/APIAdvert.js';
3
3
  import '../../types/api/APIBaseChannel.js';
4
4
  import '../../types/api/APIBetChannel.js';
@@ -1,4 +1,4 @@
1
- export { G as Guild } from '../../index-xkfp9hFj.js';
1
+ export { G as Guild } from '../../index-BAy2XOWP.js';
2
2
  import '../Collection.js';
3
3
  import '../../types/api/APIGuildPermissions.js';
4
4
  import '../../types/api/APIGuildAdvert.js';
@@ -81,6 +81,7 @@ class Guild {
81
81
  __publicField(this, "matches");
82
82
  /** Guild Prices Used */
83
83
  __publicField(this, "prices");
84
+ __publicField(this, "max_advert_per_user");
84
85
  __publicField(this, "permissionsManager");
85
86
  __publicField(this, "buffer");
86
87
  __publicField(this, "vipMembers");
@@ -112,6 +113,7 @@ class Guild {
112
113
  this.status = data?.status;
113
114
  this.tickets_configuration = data?.tickets_configuration;
114
115
  this.channels = data?.channels;
116
+ this.max_advert_per_user = data?.max_advert_per_user;
115
117
  this.coin_symbol = data?.coin_symbol;
116
118
  this.roulette_settings = data?.roulette_settings;
117
119
  this.webhook_urls = data?.webhook_urls || {
@@ -499,23 +501,21 @@ class Guild {
499
501
  });
500
502
  return __privateMethod(this, _Guild_instances, update_fn).call(this, response);
501
503
  }
502
- async toggleMode(mode) {
504
+ async toggleMode(...mode) {
503
505
  const url = import_Routes.Routes.guilds.get(this.id);
506
+ let data = Array.isArray(mode) ? mode : [mode];
504
507
  let modes = this.modes;
505
- const returnModes = () => {
506
- const isModeOn = modes.on.includes(mode);
508
+ for (let mode2 of data) {
509
+ const isModeOn = modes.on.includes(mode2);
507
510
  if (isModeOn) {
508
- modes.on = modes.on.filter((m) => m !== mode);
509
- modes.off.push(mode);
510
- return modes;
511
+ modes.on = modes.on.filter((m) => m !== mode2);
512
+ modes.off.push(mode2);
511
513
  } else {
512
- modes.off = modes.off.filter((m) => m !== mode);
513
- modes.on.push(mode);
514
- return modes;
514
+ modes.off = modes.off.filter((m) => m !== mode2);
515
+ modes.on.push(mode2);
515
516
  }
516
- };
517
- const md = returnModes();
518
- const payload = { modes: md };
517
+ }
518
+ const payload = { modes };
519
519
  const response = await this.rest.request({
520
520
  method: "patch",
521
521
  url,
@@ -523,6 +523,32 @@ class Guild {
523
523
  });
524
524
  return __privateMethod(this, _Guild_instances, update_fn).call(this, response);
525
525
  }
526
+ toJSON() {
527
+ return {
528
+ adverts: this.adverts,
529
+ bet_count: this.bet_count,
530
+ channels: this.channels,
531
+ client_key: this.client_key,
532
+ codes: this.codes,
533
+ coin_symbol: this.coin_symbol,
534
+ createdAt: this.createdAt,
535
+ daily_categories: this.daily_categories,
536
+ id: this.id,
537
+ match_count: this.match_count,
538
+ max_advert_per_user: this.max_advert_per_user,
539
+ modes: this.modes,
540
+ permissions: this.permissions,
541
+ prefix: this.prefix,
542
+ prefixes: this.prefixes,
543
+ prices: this.prices,
544
+ roulette_settings: this.roulette_settings,
545
+ scores: this.scores,
546
+ status: this.status,
547
+ tickets_configuration: this.tickets_configuration,
548
+ updatedAt: this.updatedAt,
549
+ webhook_urls: this.webhook_urls
550
+ };
551
+ }
526
552
  }
527
553
  _Guild_instances = new WeakSet();
528
554
  update_fn = function(data) {
@@ -1,4 +1,4 @@
1
- export { j as AutomaticMessage, G as Guild, x as GuildBet, z as GuildBetUser, K as GuildMatch, O as GuildMediator, X as GuildTicket, _ as GuildUser, a0 as LogEntry, a8 as MinesGame, af as Product, an as Shop, ar as TicketPanel, at as Tournament, aw as VipMember } from '../index-xkfp9hFj.js';
1
+ export { j as AutomaticMessage, G as Guild, x as GuildBet, z as GuildBetUser, K as GuildMatch, O as GuildMediator, X as GuildTicket, _ as GuildUser, a0 as LogEntry, a8 as MinesGame, af as Product, an as Shop, ar as TicketPanel, at as Tournament, aw as VipMember } from '../index-BAy2XOWP.js';
2
2
  export { Collection } from './Collection.js';
3
3
  import '../types/api/APIAdvert.js';
4
4
  import '../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { a0 as LogEntry } from '../../index-xkfp9hFj.js';
1
+ export { a0 as LogEntry } from '../../index-BAy2XOWP.js';
2
2
  import '../../types/api/APILogEntry.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { K as GuildMatch } from '../../index-xkfp9hFj.js';
1
+ export { K as GuildMatch } from '../../index-BAy2XOWP.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APIBaseChannel.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { O as GuildMediator } from '../../index-xkfp9hFj.js';
1
+ export { O as GuildMediator } from '../../index-BAy2XOWP.js';
2
2
  import '../../types/api/APIGuildMediator.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { a8 as MinesGame } from '../../index-xkfp9hFj.js';
1
+ export { a8 as MinesGame } from '../../index-BAy2XOWP.js';
2
2
  import '../../types/api/APIMinesGame.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { af as Product } from '../../index-xkfp9hFj.js';
1
+ export { af as Product } from '../../index-BAy2XOWP.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APIProduct.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { an as Shop } from '../../index-xkfp9hFj.js';
2
+ export { an as Shop } from '../../index-BAy2XOWP.js';
3
3
  import '../../types/api/APIGuildShop.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { X as GuildTicket } from '../../index-xkfp9hFj.js';
1
+ export { X as GuildTicket } from '../../index-BAy2XOWP.js';
2
2
  import '../../types/api/APIGuildTicket.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { ar as TicketPanel } from '../../index-xkfp9hFj.js';
2
+ export { ar as TicketPanel } from '../../index-BAy2XOWP.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
@@ -1,4 +1,4 @@
1
- export { at as Tournament } from '../../index-xkfp9hFj.js';
1
+ export { at as Tournament } from '../../index-BAy2XOWP.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APITournament.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { _ as GuildUser } from '../../index-xkfp9hFj.js';
1
+ export { _ as GuildUser } from '../../index-BAy2XOWP.js';
2
2
  import '../../types/api/APIAdvert.js';
3
3
  import '../../types/api/APIBaseChannel.js';
4
4
  import '../../types/api/APIBetChannel.js';
@@ -1,4 +1,4 @@
1
- export { aw as VipMember } from '../../index-xkfp9hFj.js';
1
+ export { aw as VipMember } from '../../index-BAy2XOWP.js';
2
2
  import '../../types/api/APIVipMember.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -1,5 +1,5 @@
1
1
  import '../structures/Collection.js';
2
- export { ai as RequestOptions, aj as RestEvents } from '../index-xkfp9hFj.js';
2
+ export { ai as RequestOptions, aj as RestEvents } from '../index-BAy2XOWP.js';
3
3
  import './api/APIAdvert.js';
4
4
  import './api/APIBaseChannel.js';
5
5
  import './api/APIBetChannel.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { A as APIAutomaticMessage } from '../../index-xkfp9hFj.js';
2
+ export { A as APIAutomaticMessage } from '../../index-BAy2XOWP.js';
3
3
  import './APIAdvert.js';
4
4
  import './APIBaseChannel.js';
5
5
  import './APIBetChannel.js';
@@ -1,4 +1,4 @@
1
- export { a as APIGuild, l as AutomaticMessagesTypes, v as DailyCategories, H as GuildChannelsType, I as GuildLogsWebhookUrls, Q as GuildModes, T as GuildPrices, U as GuildScores, V as GuildStatus, W as GuildStatusEnum, Y as GuildTicketConfiguration, ak as RoulettePrize, al as RouletteSettings } from '../../index-xkfp9hFj.js';
1
+ export { a as APIGuild, l as AutomaticMessagesTypes, v as DailyCategories, H as GuildChannelsType, I as GuildLogsWebhookUrls, Q as GuildModes, T as GuildPrices, U as GuildScores, V as GuildStatus, W as GuildStatusEnum, Y as GuildTicketConfiguration, ak as RoulettePrize, al as RouletteSettings } from '../../index-BAy2XOWP.js';
2
2
  import './APIGuildPermissions.js';
3
3
  import './APIGuildAdvert.js';
4
4
  import './APICode.js';
@@ -53,7 +53,9 @@ var GuildChannelsType = /* @__PURE__ */ ((GuildChannelsType2) => {
53
53
  GuildChannelsType2["ManagingLogs"] = "managing_logs";
54
54
  GuildChannelsType2["NormalQueue"] = "normal_queue";
55
55
  GuildChannelsType2["ChallengeQueue"] = "challenge_queue";
56
- GuildChannelsType2["MatchTextChannelParent"] = "match_text_channel_parent";
56
+ GuildChannelsType2["NormalMatchTextChannelParent"] = "normal_match_text_channel_parent";
57
+ GuildChannelsType2["BetMatchTextChannelParent"] = "bet_match_text_channel_parent";
58
+ GuildChannelsType2["ChallengeMatchTextChannelParent"] = "challenge_match_text_channel_parent";
57
59
  GuildChannelsType2["VoiceChannelMatchCreation"] = "voice_channel_match_creation";
58
60
  GuildChannelsType2["WaitingVC"] = "waiting_vc";
59
61
  GuildChannelsType2["BetMobileCategory"] = "bet_mobile_category";
@@ -1,4 +1,4 @@
1
- export { b as APIGuildBet, q as BetChannelTypes, r as BetQueue } from '../../index-xkfp9hFj.js';
1
+ export { b as APIGuildBet, q as BetChannelTypes, r as BetQueue } from '../../index-BAy2XOWP.js';
2
2
  import './APIBetChannel.js';
3
3
  import './APIMessage.js';
4
4
  import './APIPlayer.js';
@@ -1,4 +1,4 @@
1
- export { c as APIGuildBetUser } from '../../index-xkfp9hFj.js';
1
+ export { c as APIGuildBetUser } from '../../index-BAy2XOWP.js';
2
2
  import './APIAdvert.js';
3
3
  import './APIBaseChannel.js';
4
4
  import './APIBetChannel.js';
@@ -1,4 +1,4 @@
1
- export { d as APIGuildGroupedChannel } from '../../index-xkfp9hFj.js';
1
+ export { d as APIGuildGroupedChannel } from '../../index-BAy2XOWP.js';
2
2
  import './APIAdvert.js';
3
3
  import './APIBaseChannel.js';
4
4
  import './APIBetChannel.js';
@@ -1,4 +1,4 @@
1
- export { e as APIGuildMatch, L as GuildMatchChannelsType, N as GuildMatchMessagesType, a6 as MatchSelection } from '../../index-xkfp9hFj.js';
1
+ export { e as APIGuildMatch, L as GuildMatchChannelsType, N as GuildMatchMessagesType, a6 as MatchSelection } from '../../index-BAy2XOWP.js';
2
2
  import './APIPlayer.js';
3
3
  import './APIBaseChannel.js';
4
4
  import './APIMessage.js';
@@ -1,4 +1,4 @@
1
- export { f as APIGuildUser, ag as Profile } from '../../index-xkfp9hFj.js';
1
+ export { f as APIGuildUser, ag as Profile } from '../../index-BAy2XOWP.js';
2
2
  import './APIAdvert.js';
3
3
  import './APIBaseChannel.js';
4
4
  import './APIBetChannel.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { h as APITicketPanel } from '../../index-xkfp9hFj.js';
2
+ export { h as APITicketPanel } from '../../index-BAy2XOWP.js';
3
3
  import './APIAdvert.js';
4
4
  import './APIBaseChannel.js';
5
5
  import './APIBetChannel.js';
@@ -1,5 +1,5 @@
1
1
  export { APIAdvert } from './APIAdvert.js';
2
- export { A as APIAutomaticMessage, a as APIGuild, b as APIGuildBet, c as APIGuildBetUser, d as APIGuildGroupedChannel, e as APIGuildMatch, f as APIGuildUser, g as APITicketCategory, h as APITicketPanel, i as Accessory, l as AutomaticMessagesTypes, B as BETSTATUS, m as Banner, o as BaseMatchModes, p as BaseMatchStatus, q as BetChannelTypes, r as BetQueue, C as Confirm, D as Daily, v as DailyCategories, H as GuildChannelsType, I as GuildLogsWebhookUrls, L as GuildMatchChannelsType, N as GuildMatchMessagesType, Q as GuildModes, T as GuildPrices, U as GuildScores, V as GuildStatus, W as GuildStatusEnum, Y as GuildTicketConfiguration, a2 as LogMessage, a3 as Logs, a4 as MATCHSTATUS, a5 as MATCHTYPES, a6 as MatchSelection, aa as Optional, ab as OriginalChannel, ac as OriginalChannels, ag as Profile, ah as ProfileCard, ak as RoulettePrize, al as RouletteSettings, am as STATES, ap as StatusResponse, av as UserAccessoryType } from '../../index-xkfp9hFj.js';
2
+ export { A as APIAutomaticMessage, a as APIGuild, b as APIGuildBet, c as APIGuildBetUser, d as APIGuildGroupedChannel, e as APIGuildMatch, f as APIGuildUser, g as APITicketCategory, h as APITicketPanel, i as Accessory, l as AutomaticMessagesTypes, B as BETSTATUS, m as Banner, o as BaseMatchModes, p as BaseMatchStatus, q as BetChannelTypes, r as BetQueue, C as Confirm, D as Daily, v as DailyCategories, H as GuildChannelsType, I as GuildLogsWebhookUrls, L as GuildMatchChannelsType, N as GuildMatchMessagesType, Q as GuildModes, T as GuildPrices, U as GuildScores, V as GuildStatus, W as GuildStatusEnum, Y as GuildTicketConfiguration, a2 as LogMessage, a3 as Logs, a4 as MATCHSTATUS, a5 as MATCHTYPES, a6 as MatchSelection, aa as Optional, ab as OriginalChannel, ac as OriginalChannels, ag as Profile, ah as ProfileCard, ak as RoulettePrize, al as RouletteSettings, am as STATES, ap as StatusResponse, av as UserAccessoryType } from '../../index-BAy2XOWP.js';
3
3
  export { APIBaseChannel } from './APIBaseChannel.js';
4
4
  export { APIBetChannel } from './APIBetChannel.js';
5
5
  export { APICode } from './APICode.js';
@@ -1,4 +1,4 @@
1
- export { A as APIAutomaticMessage, a as APIGuild, b as APIGuildBet, c as APIGuildBetUser, d as APIGuildGroupedChannel, e as APIGuildMatch, f as APIGuildUser, g as APITicketCategory, h as APITicketPanel, i as Accessory, l as AutomaticMessagesTypes, B as BETSTATUS, m as Banner, o as BaseMatchModes, p as BaseMatchStatus, q as BetChannelTypes, r as BetQueue, C as Confirm, D as Daily, v as DailyCategories, H as GuildChannelsType, I as GuildLogsWebhookUrls, L as GuildMatchChannelsType, N as GuildMatchMessagesType, Q as GuildModes, T as GuildPrices, U as GuildScores, V as GuildStatus, W as GuildStatusEnum, Y as GuildTicketConfiguration, a2 as LogMessage, a3 as Logs, a4 as MATCHSTATUS, a5 as MATCHTYPES, a6 as MatchSelection, aa as Optional, ab as OriginalChannel, ac as OriginalChannels, ag as Profile, ah as ProfileCard, ai as RequestOptions, aj as RestEvents, ak as RoulettePrize, al as RouletteSettings, am as STATES, ap as StatusResponse, av as UserAccessoryType } from '../index-xkfp9hFj.js';
1
+ export { A as APIAutomaticMessage, a as APIGuild, b as APIGuildBet, c as APIGuildBetUser, d as APIGuildGroupedChannel, e as APIGuildMatch, f as APIGuildUser, g as APITicketCategory, h as APITicketPanel, i as Accessory, l as AutomaticMessagesTypes, B as BETSTATUS, m as Banner, o as BaseMatchModes, p as BaseMatchStatus, q as BetChannelTypes, r as BetQueue, C as Confirm, D as Daily, v as DailyCategories, H as GuildChannelsType, I as GuildLogsWebhookUrls, L as GuildMatchChannelsType, N as GuildMatchMessagesType, Q as GuildModes, T as GuildPrices, U as GuildScores, V as GuildStatus, W as GuildStatusEnum, Y as GuildTicketConfiguration, a2 as LogMessage, a3 as Logs, a4 as MATCHSTATUS, a5 as MATCHTYPES, a6 as MatchSelection, aa as Optional, ab as OriginalChannel, ac as OriginalChannels, ag as Profile, ah as ProfileCard, ai as RequestOptions, aj as RestEvents, ak as RoulettePrize, al as RouletteSettings, am as STATES, ap as StatusResponse, av as UserAccessoryType } from '../index-BAy2XOWP.js';
2
2
  export { APIAdvert } from './api/APIAdvert.js';
3
3
  export { APIBaseChannel } from './api/APIBaseChannel.js';
4
4
  export { APIBetChannel } from './api/APIBetChannel.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duque.edits/sdk",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",