@duque.edits/sdk 1.4.0 → 1.4.3

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 (58) hide show
  1. package/dist/{index-B3Zdmuq-.d.ts → index-sk2XkpmT.d.ts} +23 -4
  2. package/dist/index.d.ts +2 -1
  3. package/dist/managers/automaticmessage/AutomaticMessageManager.d.ts +2 -1
  4. package/dist/managers/base.d.ts +2 -1
  5. package/dist/managers/bet/GuildBetManager.d.ts +2 -1
  6. package/dist/managers/betuser/GuildBetUserManager.d.ts +2 -1
  7. package/dist/managers/buffer/BufferManager.d.ts +2 -1
  8. package/dist/managers/guild/GuildManager.d.ts +2 -1
  9. package/dist/managers/index.d.ts +2 -1
  10. package/dist/managers/logs/LogManager.d.ts +2 -1
  11. package/dist/managers/match/GuildMatchManager.d.ts +2 -1
  12. package/dist/managers/mediator/GuildMediatorManager.d.ts +2 -1
  13. package/dist/managers/message/MessagesManager.d.ts +2 -1
  14. package/dist/managers/minesgame/MinesGameManager.d.ts +2 -1
  15. package/dist/managers/permission/GuildPermissionManager.d.ts +2 -1
  16. package/dist/managers/player/PlayerManager.d.ts +2 -1
  17. package/dist/managers/product/ProductManager.d.ts +2 -1
  18. package/dist/managers/shop/ShopManager.d.ts +2 -1
  19. package/dist/managers/ticket/TicketManager.d.ts +2 -1
  20. package/dist/managers/ticketpanel/TicketPanelManager.d.ts +2 -1
  21. package/dist/managers/tournament/TournamentManager.d.ts +2 -1
  22. package/dist/managers/user/GuildUserManager.d.ts +2 -1
  23. package/dist/managers/vipmember/VipMemberManager.d.ts +2 -1
  24. package/dist/rest/REST.d.ts +2 -1
  25. package/dist/rest/index.d.ts +2 -1
  26. package/dist/structures/automaticmessage/AutomaticMessage.d.ts +2 -1
  27. package/dist/structures/bet/GuildBet.d.ts +2 -1
  28. package/dist/structures/betuser/GuildBetUser.d.ts +2 -1
  29. package/dist/structures/guild/Guild.d.ts +2 -1
  30. package/dist/structures/guild/Guild.js +53 -9
  31. package/dist/structures/index.d.ts +2 -1
  32. package/dist/structures/logentry/LogEntry.d.ts +2 -1
  33. package/dist/structures/match/GuildMatch.d.ts +2 -1
  34. package/dist/structures/mediator/GuildMediator.d.ts +2 -1
  35. package/dist/structures/minesgame/MinesGame.d.ts +2 -1
  36. package/dist/structures/product/Product.d.ts +2 -1
  37. package/dist/structures/shop/Shop.d.ts +2 -1
  38. package/dist/structures/ticket/Ticket.d.ts +2 -1
  39. package/dist/structures/ticketpanel/TicketPanel.d.ts +2 -1
  40. package/dist/structures/tournament/Tournament.d.ts +2 -1
  41. package/dist/structures/user/GuildUser.d.ts +2 -1
  42. package/dist/structures/user/GuildUser.js +2 -0
  43. package/dist/structures/vipmember/VipMember.d.ts +2 -1
  44. package/dist/types/RestTypes.d.ts +2 -1
  45. package/dist/types/api/APIAutomaticMessage.d.ts +2 -1
  46. package/dist/types/api/APIGuild.d.ts +2 -1
  47. package/dist/types/api/APIGuild.js +9 -2
  48. package/dist/types/api/APIGuildBet.d.ts +2 -1
  49. package/dist/types/api/APIGuildBetUser.d.ts +2 -1
  50. package/dist/types/api/APIGuildGroupedChannel.d.ts +2 -1
  51. package/dist/types/api/APIGuildMatch.d.ts +2 -1
  52. package/dist/types/api/APIGuildUser.d.ts +2 -1
  53. package/dist/types/api/APITicketPanel.d.ts +2 -1
  54. package/dist/types/api/APITimer.d.ts +9 -0
  55. package/dist/types/api/APITimer.js +16 -0
  56. package/dist/types/api/index.d.ts +2 -1
  57. package/dist/types/index.d.ts +2 -1
  58. package/package.json +1 -1
@@ -18,6 +18,7 @@ import { APIVipMember } from './types/api/APIVipMember.js';
18
18
  import { Collection } from './structures/Collection.js';
19
19
  import EventEmitter from 'events';
20
20
  import { APIEmbed } from 'discord-api-types/v10';
21
+ import { APITimer } from './types/api/APITimer.js';
21
22
  import { APITournament } from './types/api/APITournament.js';
22
23
 
23
24
  interface APIGuildGroupedChannel {
@@ -163,17 +164,29 @@ interface APIGuild {
163
164
  webhook_urls: GuildLogsWebhookUrls;
164
165
  match_count: number;
165
166
  bet_count: number;
167
+ timers: APITimer[];
166
168
  }
167
169
  interface GuildLogsWebhookUrls {
168
170
  queues: {
171
+ started: string;
169
172
  closed: string;
170
- shutted: string;
171
173
  managed: string;
172
- started: string;
174
+ shutted: string;
173
175
  };
174
176
  users: {
175
177
  punished: string;
176
178
  updated: string;
179
+ wins: string;
180
+ losses: string;
181
+ points: string;
182
+ mvps: string;
183
+ creations: string;
184
+ credit: string;
185
+ spins: string;
186
+ };
187
+ roullete: {
188
+ spins_gained: string;
189
+ spins_used: string;
177
190
  };
178
191
  shop: {
179
192
  redeemed: string;
@@ -183,6 +196,10 @@ interface GuildLogsWebhookUrls {
183
196
  opened: string;
184
197
  };
185
198
  }
199
+ declare enum GuildTimerTypes {
200
+ TemporaryRole = "temporary_role",
201
+ Giveaway = "giveaway"
202
+ }
186
203
 
187
204
  interface APIAutomaticMessage {
188
205
  id: string;
@@ -877,6 +894,7 @@ declare class GuildUser implements APIGuildUser {
877
894
  value: boolean;
878
895
  type: string;
879
896
  }>;
897
+ getActiveAccessories(): Promise<void>;
880
898
  hasAccessory(type: UserAccessoryType): Promise<boolean>;
881
899
  addAdvert(data: Optional<Omit<APIAdvert, "_id">>): Promise<GuildUser>;
882
900
  removeAdvert(advertId?: string): Promise<GuildUser>;
@@ -1448,7 +1466,8 @@ declare class Guild {
1448
1466
  webhook_urls: GuildLogsWebhookUrls;
1449
1467
  adverts: APIGuildAdvert[];
1450
1468
  ticket_panels: TicketPanelManager;
1451
- codes: APICode[];
1469
+ timers: Collection<string, APITimer>;
1470
+ codes: Collection<string, APICode>;
1452
1471
  coin_symbol: string;
1453
1472
  /**
1454
1473
  * The guild structure
@@ -1706,4 +1725,4 @@ declare class GuildTicketManager {
1706
1725
  set(data: APIGuildTicket | GuildTicket | APIGuildTicket[]): GuildTicket | Collection<string, GuildTicket>;
1707
1726
  }
1708
1727
 
1709
- export { GuildUserManager as $, type APIAutomaticMessage as A, BETSTATUS as B, type Confirm as C, type Daily as D, GuildBetUserManager as E, type FetchOptions$2 as F, Guild as G, GuildChannelsType as H, type GuildLogsWebhookUrls as I, GuildManager as J, GuildMatch as K, GuildMatchChannelsType as L, GuildMatchManager as M, GuildMatchMessagesType as N, GuildMediator as O, GuildMediatorManager as P, type GuildModes as Q, REST as R, GuildPermissionManager as S, type GuildPrices as T, type GuildScores as U, type GuildStatus as V, GuildStatusEnum as W, GuildTicket as X, type GuildTicketConfiguration as Y, GuildTicketManager as Z, GuildUser as _, type APIGuild as a, LogEntry as a0, LogManager as a1, type LogMessage as a2, type Logs as a3, MATCHSTATUS as a4, MATCHTYPES as a5, type MatchSelection as a6, MessagesManager as a7, MinesGame as a8, MinesGameManager as a9, type Optional as aa, type OriginalChannel as ab, type OriginalChannels as ac, PlayerManager as ad, type PlayerOption as ae, Product as af, type Profile as ag, type ProfileCard as ah, type RequestOptions as ai, type RestEvents as aj, type RoulettePrize as ak, type RouletteSettings as al, STATES as am, Shop as an, ShopManager as ao, type StatusResponse as ap, type Structure as aq, TicketPanel as ar, TicketPanelManager as as, Tournament as at, TournamentManager as au, UserAccessoryType as av, VipMember as aw, VipMemberManager as ax, ProductManager as ay, type APIGuildBet as b, type APIGuildBetUser as c, type APIGuildGroupedChannel as d, type APIGuildMatch as e, type APIGuildUser as f, type APITicketCategory as g, type APITicketPanel as h, type Accessory as i, AutomaticMessage as j, AutomaticMessageManager as k, AutomaticMessagesTypes as l, type Banner as m, BaseManager as n, type BaseMatchModes as o, type BaseMatchStatus as p, BetChannelTypes as q, type BetQueue as r, BufferManager as s, type BufferMatch as t, type BufferTicket as u, type DailyCategories as v, type FetchReturn as w, GuildBet as x, GuildBetManager as y, GuildBetUser as z };
1728
+ export { GuildUser as $, type APIAutomaticMessage as A, BETSTATUS as B, type Confirm as C, type Daily as D, GuildBetUserManager as E, type FetchOptions$2 as F, Guild as G, GuildChannelsType as H, type GuildLogsWebhookUrls as I, GuildManager as J, GuildMatch as K, GuildMatchChannelsType as L, GuildMatchManager as M, GuildMatchMessagesType as N, GuildMediator as O, GuildMediatorManager as P, type GuildModes as Q, REST as R, GuildPermissionManager as S, type GuildPrices as T, type GuildScores as U, type GuildStatus as V, GuildStatusEnum as W, GuildTicket as X, type GuildTicketConfiguration as Y, GuildTicketManager as Z, GuildTimerTypes as _, type APIGuild as a, GuildUserManager as a0, LogEntry as a1, LogManager as a2, type LogMessage as a3, type Logs as a4, MATCHSTATUS as a5, MATCHTYPES as a6, type MatchSelection as a7, MessagesManager as a8, MinesGame as a9, MinesGameManager as aa, type Optional as ab, type OriginalChannel as ac, type OriginalChannels as ad, PlayerManager as ae, type PlayerOption as af, Product as ag, type Profile as ah, type ProfileCard as ai, type RequestOptions as aj, type RestEvents as ak, type RoulettePrize as al, type RouletteSettings as am, STATES as an, Shop as ao, ShopManager as ap, type StatusResponse as aq, type Structure as ar, TicketPanel as as, TicketPanelManager as at, Tournament as au, TournamentManager as av, UserAccessoryType as aw, VipMember as ax, VipMemberManager as ay, ProductManager as az, type APIGuildBet as b, type APIGuildBetUser as c, type APIGuildGroupedChannel as d, type APIGuildMatch as e, type APIGuildUser as f, type APITicketCategory as g, type APITicketPanel as h, type Accessory as i, AutomaticMessage as j, AutomaticMessageManager as k, AutomaticMessagesTypes as l, type Banner as m, BaseManager as n, type BaseMatchModes as o, type BaseMatchStatus as p, BetChannelTypes as q, type BetQueue as r, BufferManager as s, type BufferMatch as t, type BufferTicket as u, type DailyCategories as v, type FetchReturn as w, GuildBet as x, GuildBetManager as y, GuildBetUser as z };
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-B3Zdmuq-.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 GuildTimerTypes, $ as GuildUser, a0 as GuildUserManager, a1 as LogEntry, a2 as LogManager, a3 as LogMessage, a4 as Logs, a5 as MATCHSTATUS, a6 as MATCHTYPES, a7 as MatchSelection, a8 as MessagesManager, a9 as MinesGame, aa as MinesGameManager, ab as Optional, ac as OriginalChannel, ad as OriginalChannels, ae as PlayerManager, af as PlayerOption, ag as Product, ah as Profile, ai as ProfileCard, R as REST, aj as RequestOptions, ak as RestEvents, al as RoulettePrize, am as RouletteSettings, an as STATES, ao as Shop, ap as ShopManager, aq as StatusResponse, ar as Structure, as as TicketPanel, at as TicketPanelManager, au as Tournament, av as TournamentManager, aw as UserAccessoryType, ax as VipMember, ay as VipMemberManager } from './index-sk2XkpmT.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';
@@ -21,4 +21,5 @@ export { APIProduct } from './types/api/APIProduct.js';
21
21
  export { APIVipMember } from './types/api/APIVipMember.js';
22
22
  import 'events';
23
23
  import 'discord-api-types/v10';
24
+ import './types/api/APITimer.js';
24
25
  import './types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { k as AutomaticMessageManager } from '../../index-B3Zdmuq-.js';
1
+ export { k as AutomaticMessageManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APILogEntry.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { n as BaseManager } from '../index-B3Zdmuq-.js';
1
+ export { n as BaseManager } from '../index-sk2XkpmT.js';
2
2
  import '../structures/Collection.js';
3
3
  import '../types/api/APIAdvert.js';
4
4
  import '../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../types/api/APILogEntry.js';
19
19
  import '../types/api/APIMinesGame.js';
20
20
  import '../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../types/api/APITimer.js';
22
23
  import '../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { F as FetchOptions, y as GuildBetManager } from '../../index-B3Zdmuq-.js';
1
+ export { F as FetchOptions, y as GuildBetManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APILogEntry.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { E as GuildBetUserManager } from '../../index-B3Zdmuq-.js';
1
+ export { E as GuildBetUserManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APILogEntry.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,5 +1,5 @@
1
1
  import '../../structures/Collection.js';
2
- export { s as BufferManager, t as BufferMatch, u as BufferTicket } from '../../index-B3Zdmuq-.js';
2
+ export { s as BufferManager, t as BufferMatch, u as BufferTicket } from '../../index-sk2XkpmT.js';
3
3
  import '../../types/api/APIGuildTicket.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMessage.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { J as GuildManager } from '../../index-B3Zdmuq-.js';
1
+ export { J as GuildManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APILogEntry.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.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-B3Zdmuq-.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, a0 as GuildUserManager, a2 as LogManager, a8 as MessagesManager, aa as MinesGameManager, ae as PlayerManager, af as PlayerOption, ap as ShopManager, ar as Structure, at as TicketPanelManager, av as TournamentManager, ay as VipMemberManager } from '../index-sk2XkpmT.js';
2
2
  import '../types/api/APIAdvert.js';
3
3
  import '../types/api/APIBaseChannel.js';
4
4
  import '../types/api/APIBetChannel.js';
@@ -19,4 +19,5 @@ import '../types/api/APIMinesGame.js';
19
19
  import '../types/api/APIVipMember.js';
20
20
  import '../structures/Collection.js';
21
21
  import 'events';
22
+ import '../types/api/APITimer.js';
22
23
  import '../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { a1 as LogManager } from '../../index-B3Zdmuq-.js';
1
+ export { a2 as LogManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APILogEntry.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMessage.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { M as GuildMatchManager } from '../../index-B3Zdmuq-.js';
1
+ export { M as GuildMatchManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APILogEntry.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { P as GuildMediatorManager } from '../../index-B3Zdmuq-.js';
1
+ export { P as GuildMediatorManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildMediator.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -19,4 +19,5 @@ import '../../types/api/APILogEntry.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { a7 as MessagesManager } from '../../index-B3Zdmuq-.js';
1
+ export { a8 as MessagesManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIMessage.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -19,4 +19,5 @@ import '../../types/api/APILogEntry.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { a9 as MinesGameManager } from '../../index-B3Zdmuq-.js';
1
+ export { aa as MinesGameManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIMinesGame.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMessage.js';
19
19
  import '../../types/api/APILogEntry.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { S as GuildPermissionManager } from '../../index-B3Zdmuq-.js';
1
+ export { S as GuildPermissionManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../types/api/APIGuildPermissions.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMinesGame.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import '../../structures/Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.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-B3Zdmuq-.js';
2
+ export { ae as PlayerManager, af as PlayerOption, ar as Structure } from '../../index-sk2XkpmT.js';
3
3
  import '../../structures/Collection.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APILogEntry.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { ay as ProductManager } from '../../index-B3Zdmuq-.js';
1
+ export { az as ProductManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIProduct.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -19,4 +19,5 @@ import '../../types/api/APILogEntry.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { ao as ShopManager } from '../../index-B3Zdmuq-.js';
1
+ export { ap as ShopManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildShop.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIProduct.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import 'events';
21
21
  import 'discord-api-types/v10';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { Z as GuildTicketManager } from '../../index-B3Zdmuq-.js';
1
+ export { Z as GuildTicketManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildTicket.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMessage.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { w as FetchReturn, as as TicketPanelManager } from '../../index-B3Zdmuq-.js';
1
+ export { w as FetchReturn, at as TicketPanelManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APILogEntry.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { au as TournamentManager } from '../../index-B3Zdmuq-.js';
1
+ export { av as TournamentManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APITournament.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -20,3 +20,4 @@ import '../../types/api/APILogEntry.js';
20
20
  import '../../types/api/APIMinesGame.js';
21
21
  import '../../types/api/APIVipMember.js';
22
22
  import 'events';
23
+ import '../../types/api/APITimer.js';
@@ -1,5 +1,5 @@
1
1
  import '../../structures/Collection.js';
2
- export { $ as GuildUserManager } from '../../index-B3Zdmuq-.js';
2
+ export { a0 as GuildUserManager } from '../../index-sk2XkpmT.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APILogEntry.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { ax as VipMemberManager } from '../../index-B3Zdmuq-.js';
1
+ export { ay as VipMemberManager } from '../../index-sk2XkpmT.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIVipMember.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMessage.js';
19
19
  import '../../types/api/APILogEntry.js';
20
20
  import '../../types/api/APIMinesGame.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,5 +1,5 @@
1
1
  import 'events';
2
- export { R as REST } from '../index-B3Zdmuq-.js';
2
+ export { R as REST } from '../index-sk2XkpmT.js';
3
3
  import '../structures/Collection.js';
4
4
  import '../types/api/APIAdvert.js';
5
5
  import '../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../types/api/APIMessage.js';
19
19
  import '../types/api/APILogEntry.js';
20
20
  import '../types/api/APIMinesGame.js';
21
21
  import '../types/api/APIVipMember.js';
22
+ import '../types/api/APITimer.js';
22
23
  import '../types/api/APITournament.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-B3Zdmuq-.js';
3
+ export { R as REST } from '../index-sk2XkpmT.js';
4
4
  import '../structures/Collection.js';
5
5
  import '../types/api/APIAdvert.js';
6
6
  import '../types/api/APIBaseChannel.js';
@@ -21,4 +21,5 @@ import '../types/api/APIProduct.js';
21
21
  import '../types/api/APIVipMember.js';
22
22
  import 'events';
23
23
  import 'discord-api-types/v10';
24
+ import '../types/api/APITimer.js';
24
25
  import '../types/api/APITournament.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { j as AutomaticMessage } from '../../index-B3Zdmuq-.js';
2
+ export { j as AutomaticMessage } from '../../index-sk2XkpmT.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMinesGame.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import '../Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { x as GuildBet } from '../../index-B3Zdmuq-.js';
1
+ export { x as GuildBet } from '../../index-sk2XkpmT.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APIBetChannel.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMinesGame.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import '../Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { z as GuildBetUser } from '../../index-B3Zdmuq-.js';
1
+ export { z as GuildBetUser } from '../../index-sk2XkpmT.js';
2
2
  import '../../types/api/APIAdvert.js';
3
3
  import '../../types/api/APIBaseChannel.js';
4
4
  import '../../types/api/APIBetChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMinesGame.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import '../Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,5 +1,6 @@
1
- export { G as Guild } from '../../index-B3Zdmuq-.js';
1
+ export { G as Guild } from '../../index-sk2XkpmT.js';
2
2
  import '../Collection.js';
3
+ import '../../types/api/APITimer.js';
3
4
  import '../../types/api/APIGuildPermissions.js';
4
5
  import '../../types/api/APIGuildAdvert.js';
5
6
  import '../../types/api/APICode.js';
@@ -36,6 +36,7 @@ var import_TicketPanelManager = require("../../managers/ticketpanel/TicketPanelM
36
36
  var import_TournamentManager = require("../../managers/tournament/TournamentManager");
37
37
  var import_Routes = require("../../rest/Routes");
38
38
  var import_Assertion = require("../../utils/Assertion");
39
+ var import_Collection = require("../Collection");
39
40
  var _Guild_instances, update_fn;
40
41
  class Guild {
41
42
  /**
@@ -96,6 +97,7 @@ class Guild {
96
97
  __publicField(this, "webhook_urls");
97
98
  __publicField(this, "adverts");
98
99
  __publicField(this, "ticket_panels");
100
+ __publicField(this, "timers");
99
101
  __publicField(this, "codes");
100
102
  __publicField(this, "coin_symbol");
101
103
  this.data = data;
@@ -107,7 +109,6 @@ class Guild {
107
109
  this.modes = data?.modes;
108
110
  this.prices = data?.prices;
109
111
  this.scores = data?.scores;
110
- this.codes = data?.codes;
111
112
  this.prefix = data?.prefix;
112
113
  this.prefixes = data?.prefixes;
113
114
  this.status = data?.status;
@@ -125,11 +126,22 @@ class Guild {
125
126
  },
126
127
  users: {
127
128
  punished: "",
128
- updated: ""
129
+ updated: "",
130
+ creations: "",
131
+ wins: "",
132
+ losses: "",
133
+ credit: "",
134
+ spins: "",
135
+ mvps: "",
136
+ points: ""
129
137
  },
130
138
  shop: {
131
139
  redeemed: ""
132
140
  },
141
+ roullete: {
142
+ spins_gained: "",
143
+ spins_used: ""
144
+ },
133
145
  tickets: {
134
146
  closed: "",
135
147
  opened: ""
@@ -164,9 +176,9 @@ class Guild {
164
176
  updatedAt: _adv.updatedAt ? new Date(_adv.updatedAt) : /* @__PURE__ */ new Date()
165
177
  });
166
178
  }
167
- this.codes = [];
179
+ this.codes = new import_Collection.Collection();
168
180
  for (let _adv of data?.codes || []) {
169
- this.codes.push({
181
+ this.codes.set(_adv._id, {
170
182
  _id: _adv._id,
171
183
  admin_id: _adv.admin_id,
172
184
  type: _adv.type,
@@ -177,6 +189,13 @@ class Guild {
177
189
  updatedAt: _adv.updatedAt ? new Date(_adv.updatedAt) : /* @__PURE__ */ new Date()
178
190
  });
179
191
  }
192
+ this.timers = new import_Collection.Collection();
193
+ for (let _timer of data?.timers || []) {
194
+ this.timers.set(_timer.id, {
195
+ ..._timer,
196
+ expiresAt: new Date(_timer.expiresAt)
197
+ });
198
+ }
180
199
  }
181
200
  async _start() {
182
201
  await Promise.all([
@@ -252,7 +271,7 @@ class Guild {
252
271
  return __privateMethod(this, _Guild_instances, update_fn).call(this, response);
253
272
  }
254
273
  async createCode(data) {
255
- this.codes.push(data);
274
+ this.codes.set(data._id, data);
256
275
  const url = import_Routes.Routes.guilds.get(this.id);
257
276
  const payload = { codes: this.codes };
258
277
  const response = await this.rest.request({ method: "PATCH", url, payload });
@@ -347,11 +366,22 @@ class Guild {
347
366
  },
348
367
  users: {
349
368
  punished: data?.users?.punished || this.webhook_urls?.users?.punished || "",
350
- updated: data?.users?.updated || this.webhook_urls?.users?.updated || ""
369
+ updated: data?.users?.updated || this.webhook_urls?.users?.updated || "",
370
+ wins: data?.users?.wins || this.webhook_urls?.users?.wins || "",
371
+ creations: data?.users?.creations || this.webhook_urls?.users?.creations || "",
372
+ credit: data?.users?.credit || this.webhook_urls?.users?.credit || "",
373
+ losses: data?.users?.losses || this.webhook_urls?.users?.losses || "",
374
+ mvps: data?.users?.mvps || this.webhook_urls?.users?.mvps || "",
375
+ points: data?.users?.points || this.webhook_urls?.users?.points || "",
376
+ spins: data?.users?.spins || this.webhook_urls?.users?.spins || ""
351
377
  },
352
378
  shop: {
353
379
  redeemed: data?.shop?.redeemed || this.webhook_urls?.shop?.redeemed || ""
354
380
  },
381
+ roullete: {
382
+ spins_gained: data?.roullete?.spins_gained || this.webhook_urls?.roullete?.spins_gained || "",
383
+ spins_used: data?.roullete?.spins_used || this.webhook_urls?.roullete?.spins_used || ""
384
+ },
355
385
  tickets: {
356
386
  closed: data?.tickets?.closed || this.webhook_urls?.tickets?.closed || "",
357
387
  opened: data?.tickets?.opened || this.webhook_urls?.tickets?.opened || ""
@@ -529,7 +559,7 @@ class Guild {
529
559
  bet_count: this.bet_count,
530
560
  channels: this.channels,
531
561
  client_key: this.client_key,
532
- codes: this.codes,
562
+ codes: this.codes.toArray(),
533
563
  coin_symbol: this.coin_symbol,
534
564
  createdAt: this.createdAt,
535
565
  daily_categories: this.daily_categories,
@@ -544,6 +574,7 @@ class Guild {
544
574
  roulette_settings: this.roulette_settings,
545
575
  scores: this.scores,
546
576
  status: this.status,
577
+ timers: this.timers.toArray(),
547
578
  tickets_configuration: this.tickets_configuration,
548
579
  updatedAt: this.updatedAt,
549
580
  webhook_urls: this.webhook_urls
@@ -569,11 +600,11 @@ update_fn = function(data) {
569
600
  updatedAt: _adv.updatedAt ? new Date(_adv.updatedAt) : /* @__PURE__ */ new Date()
570
601
  });
571
602
  }
603
+ continue;
572
604
  }
573
605
  if (key === "code") {
574
- this.codes = [];
575
606
  for (let _adv of data.codes) {
576
- this.codes.push({
607
+ this.codes.set(_adv._id, {
577
608
  _id: _adv._id,
578
609
  admin_id: _adv.admin_id,
579
610
  type: _adv.type,
@@ -586,6 +617,19 @@ update_fn = function(data) {
586
617
  }
587
618
  continue;
588
619
  }
620
+ if (key === "timers") {
621
+ this.timers = new import_Collection.Collection();
622
+ for (let _timer of data.timers) {
623
+ this.timers.set(_timer.id, {
624
+ id: _timer.id,
625
+ type: _timer.type,
626
+ role_id: _timer.role_id,
627
+ target_id: _timer.target_id,
628
+ expiresAt: _timer.expiresAt ? new Date(_timer.expiresAt) : /* @__PURE__ */ new Date()
629
+ });
630
+ }
631
+ continue;
632
+ }
589
633
  }
590
634
  this.updatedAt = /* @__PURE__ */ new Date();
591
635
  this.rest.guilds.cache.set(this.id, this);
@@ -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-B3Zdmuq-.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, a1 as LogEntry, a9 as MinesGame, ag as Product, ao as Shop, as as TicketPanel, au as Tournament, ax as VipMember } from '../index-sk2XkpmT.js';
2
2
  export { Collection } from './Collection.js';
3
3
  import '../types/api/APIAdvert.js';
4
4
  import '../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../types/api/APILogEntry.js';
19
19
  import '../types/api/APIMinesGame.js';
20
20
  import '../types/api/APIVipMember.js';
21
21
  import 'events';
22
+ import '../types/api/APITimer.js';
22
23
  import '../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { a0 as LogEntry } from '../../index-B3Zdmuq-.js';
1
+ export { a1 as LogEntry } from '../../index-sk2XkpmT.js';
2
2
  import '../../types/api/APILogEntry.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMinesGame.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import '../Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { K as GuildMatch } from '../../index-B3Zdmuq-.js';
1
+ export { K as GuildMatch } from '../../index-sk2XkpmT.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APIBaseChannel.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMinesGame.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import '../Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { O as GuildMediator } from '../../index-B3Zdmuq-.js';
1
+ export { O as GuildMediator } from '../../index-sk2XkpmT.js';
2
2
  import '../../types/api/APIGuildMediator.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMinesGame.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import '../Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { a8 as MinesGame } from '../../index-B3Zdmuq-.js';
1
+ export { a9 as MinesGame } from '../../index-sk2XkpmT.js';
2
2
  import '../../types/api/APIMinesGame.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APILogEntry.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import '../Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { af as Product } from '../../index-B3Zdmuq-.js';
1
+ export { ag as Product } from '../../index-sk2XkpmT.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APIProduct.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMinesGame.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import '../Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { an as Shop } from '../../index-B3Zdmuq-.js';
2
+ export { ao as Shop } from '../../index-sk2XkpmT.js';
3
3
  import '../../types/api/APIGuildShop.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIProduct.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import '../Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { X as GuildTicket } from '../../index-B3Zdmuq-.js';
1
+ export { X as GuildTicket } from '../../index-sk2XkpmT.js';
2
2
  import '../../types/api/APIGuildTicket.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMinesGame.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import '../Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { ar as TicketPanel } from '../../index-B3Zdmuq-.js';
2
+ export { as as TicketPanel } from '../../index-sk2XkpmT.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMinesGame.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import '../Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,4 +1,4 @@
1
- export { at as Tournament } from '../../index-B3Zdmuq-.js';
1
+ export { au as Tournament } from '../../index-sk2XkpmT.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APITournament.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -20,3 +20,4 @@ import '../../types/api/APIMinesGame.js';
20
20
  import '../../types/api/APIVipMember.js';
21
21
  import '../Collection.js';
22
22
  import 'events';
23
+ import '../../types/api/APITimer.js';
@@ -1,4 +1,4 @@
1
- export { _ as GuildUser } from '../../index-B3Zdmuq-.js';
1
+ export { $ as GuildUser } from '../../index-sk2XkpmT.js';
2
2
  import '../../types/api/APIAdvert.js';
3
3
  import '../../types/api/APIBaseChannel.js';
4
4
  import '../../types/api/APIBetChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APIMinesGame.js';
19
19
  import '../../types/api/APIVipMember.js';
20
20
  import '../Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -322,6 +322,8 @@ const _GuildUser = class _GuildUser {
322
322
  if (hasTimeExpired && acc.units !== 0) return { value: true, type: "units" };
323
323
  return { value: true, type: "units" };
324
324
  }
325
+ async getActiveAccessories() {
326
+ }
325
327
  async hasAccessory(type) {
326
328
  const acc = await this.getAccessory(type);
327
329
  if (acc?.time === 0 && acc?.units === 0) return false;
@@ -1,4 +1,4 @@
1
- export { aw as VipMember } from '../../index-B3Zdmuq-.js';
1
+ export { ax as VipMember } from '../../index-sk2XkpmT.js';
2
2
  import '../../types/api/APIVipMember.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -19,4 +19,5 @@ import '../../types/api/APILogEntry.js';
19
19
  import '../../types/api/APIMinesGame.js';
20
20
  import '../Collection.js';
21
21
  import 'events';
22
+ import '../../types/api/APITimer.js';
22
23
  import '../../types/api/APITournament.js';
@@ -1,5 +1,5 @@
1
1
  import '../structures/Collection.js';
2
- export { ai as RequestOptions, aj as RestEvents } from '../index-B3Zdmuq-.js';
2
+ export { aj as RequestOptions, ak as RestEvents } from '../index-sk2XkpmT.js';
3
3
  import './api/APIAdvert.js';
4
4
  import './api/APIBaseChannel.js';
5
5
  import './api/APIBetChannel.js';
@@ -19,4 +19,5 @@ import './api/APILogEntry.js';
19
19
  import './api/APIMinesGame.js';
20
20
  import './api/APIVipMember.js';
21
21
  import 'events';
22
+ import './api/APITimer.js';
22
23
  import './api/APITournament.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { A as APIAutomaticMessage } from '../../index-B3Zdmuq-.js';
2
+ export { A as APIAutomaticMessage } from '../../index-sk2XkpmT.js';
3
3
  import './APIAdvert.js';
4
4
  import './APIBaseChannel.js';
5
5
  import './APIBetChannel.js';
@@ -19,4 +19,5 @@ import './APIMinesGame.js';
19
19
  import './APIVipMember.js';
20
20
  import '../../structures/Collection.js';
21
21
  import 'events';
22
+ import './APITimer.js';
22
23
  import './APITournament.js';
@@ -1,5 +1,6 @@
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-B3Zdmuq-.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, _ as GuildTimerTypes, al as RoulettePrize, am as RouletteSettings } from '../../index-sk2XkpmT.js';
2
2
  import './APIGuildPermissions.js';
3
+ import './APITimer.js';
3
4
  import './APIGuildAdvert.js';
4
5
  import './APICode.js';
5
6
  import './APIAdvert.js';
@@ -20,7 +20,8 @@ var APIGuild_exports = {};
20
20
  __export(APIGuild_exports, {
21
21
  AutomaticMessagesTypes: () => AutomaticMessagesTypes,
22
22
  GuildChannelsType: () => GuildChannelsType,
23
- GuildStatusEnum: () => GuildStatusEnum
23
+ GuildStatusEnum: () => GuildStatusEnum,
24
+ GuildTimerTypes: () => GuildTimerTypes
24
25
  });
25
26
  module.exports = __toCommonJS(APIGuild_exports);
26
27
  var GuildStatusEnum = /* @__PURE__ */ ((GuildStatusEnum2) => {
@@ -68,9 +69,15 @@ var GuildChannelsType = /* @__PURE__ */ ((GuildChannelsType2) => {
68
69
  GuildChannelsType2["UserWarningsChannel"] = "user_warnings_channel";
69
70
  return GuildChannelsType2;
70
71
  })(GuildChannelsType || {});
72
+ var GuildTimerTypes = /* @__PURE__ */ ((GuildTimerTypes2) => {
73
+ GuildTimerTypes2["TemporaryRole"] = "temporary_role";
74
+ GuildTimerTypes2["Giveaway"] = "giveaway";
75
+ return GuildTimerTypes2;
76
+ })(GuildTimerTypes || {});
71
77
  // Annotate the CommonJS export names for ESM import in node:
72
78
  0 && (module.exports = {
73
79
  AutomaticMessagesTypes,
74
80
  GuildChannelsType,
75
- GuildStatusEnum
81
+ GuildStatusEnum,
82
+ GuildTimerTypes
76
83
  });
@@ -1,4 +1,4 @@
1
- export { b as APIGuildBet, q as BetChannelTypes, r as BetQueue } from '../../index-B3Zdmuq-.js';
1
+ export { b as APIGuildBet, q as BetChannelTypes, r as BetQueue } from '../../index-sk2XkpmT.js';
2
2
  import './APIBetChannel.js';
3
3
  import './APIMessage.js';
4
4
  import './APIPlayer.js';
@@ -19,4 +19,5 @@ import './APIMinesGame.js';
19
19
  import './APIVipMember.js';
20
20
  import '../../structures/Collection.js';
21
21
  import 'events';
22
+ import './APITimer.js';
22
23
  import './APITournament.js';
@@ -1,4 +1,4 @@
1
- export { c as APIGuildBetUser } from '../../index-B3Zdmuq-.js';
1
+ export { c as APIGuildBetUser } from '../../index-sk2XkpmT.js';
2
2
  import './APIAdvert.js';
3
3
  import './APIBaseChannel.js';
4
4
  import './APIBetChannel.js';
@@ -19,4 +19,5 @@ import './APIMinesGame.js';
19
19
  import './APIVipMember.js';
20
20
  import '../../structures/Collection.js';
21
21
  import 'events';
22
+ import './APITimer.js';
22
23
  import './APITournament.js';
@@ -1,4 +1,4 @@
1
- export { d as APIGuildGroupedChannel } from '../../index-B3Zdmuq-.js';
1
+ export { d as APIGuildGroupedChannel } from '../../index-sk2XkpmT.js';
2
2
  import './APIAdvert.js';
3
3
  import './APIBaseChannel.js';
4
4
  import './APIBetChannel.js';
@@ -19,4 +19,5 @@ import './APIMinesGame.js';
19
19
  import './APIVipMember.js';
20
20
  import '../../structures/Collection.js';
21
21
  import 'events';
22
+ import './APITimer.js';
22
23
  import './APITournament.js';
@@ -1,4 +1,4 @@
1
- export { e as APIGuildMatch, L as GuildMatchChannelsType, N as GuildMatchMessagesType, a6 as MatchSelection } from '../../index-B3Zdmuq-.js';
1
+ export { e as APIGuildMatch, L as GuildMatchChannelsType, N as GuildMatchMessagesType, a7 as MatchSelection } from '../../index-sk2XkpmT.js';
2
2
  import './APIPlayer.js';
3
3
  import './APIBaseChannel.js';
4
4
  import './APIMessage.js';
@@ -19,4 +19,5 @@ import './APIMinesGame.js';
19
19
  import './APIVipMember.js';
20
20
  import '../../structures/Collection.js';
21
21
  import 'events';
22
+ import './APITimer.js';
22
23
  import './APITournament.js';
@@ -1,4 +1,4 @@
1
- export { f as APIGuildUser, ag as Profile } from '../../index-B3Zdmuq-.js';
1
+ export { f as APIGuildUser, ah as Profile } from '../../index-sk2XkpmT.js';
2
2
  import './APIAdvert.js';
3
3
  import './APIBaseChannel.js';
4
4
  import './APIBetChannel.js';
@@ -19,4 +19,5 @@ import './APIMinesGame.js';
19
19
  import './APIVipMember.js';
20
20
  import '../../structures/Collection.js';
21
21
  import 'events';
22
+ import './APITimer.js';
22
23
  import './APITournament.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { h as APITicketPanel } from '../../index-B3Zdmuq-.js';
2
+ export { h as APITicketPanel } from '../../index-sk2XkpmT.js';
3
3
  import './APIAdvert.js';
4
4
  import './APIBaseChannel.js';
5
5
  import './APIBetChannel.js';
@@ -19,4 +19,5 @@ import './APIMinesGame.js';
19
19
  import './APIVipMember.js';
20
20
  import '../../structures/Collection.js';
21
21
  import 'events';
22
+ import './APITimer.js';
22
23
  import './APITournament.js';
@@ -0,0 +1,9 @@
1
+ interface APITimer {
2
+ id: string;
3
+ expiresAt: Date;
4
+ type: string;
5
+ target_id: string;
6
+ role_id: string;
7
+ }
8
+
9
+ export type { APITimer };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var APITimer_exports = {};
16
+ module.exports = __toCommonJS(APITimer_exports);
@@ -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-B3Zdmuq-.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, _ as GuildTimerTypes, a3 as LogMessage, a4 as Logs, a5 as MATCHSTATUS, a6 as MATCHTYPES, a7 as MatchSelection, ab as Optional, ac as OriginalChannel, ad as OriginalChannels, ah as Profile, ai as ProfileCard, al as RoulettePrize, am as RouletteSettings, an as STATES, aq as StatusResponse, aw as UserAccessoryType } from '../../index-sk2XkpmT.js';
3
3
  export { APIBaseChannel } from './APIBaseChannel.js';
4
4
  export { APIBetChannel } from './APIBetChannel.js';
5
5
  export { APICode } from './APICode.js';
@@ -19,4 +19,5 @@ export { APIVipMember } from './APIVipMember.js';
19
19
  import '../../structures/Collection.js';
20
20
  import 'events';
21
21
  import 'discord-api-types/v10';
22
+ import './APITimer.js';
22
23
  import './APITournament.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-B3Zdmuq-.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, _ as GuildTimerTypes, a3 as LogMessage, a4 as Logs, a5 as MATCHSTATUS, a6 as MATCHTYPES, a7 as MatchSelection, ab as Optional, ac as OriginalChannel, ad as OriginalChannels, ah as Profile, ai as ProfileCard, aj as RequestOptions, ak as RestEvents, al as RoulettePrize, am as RouletteSettings, an as STATES, aq as StatusResponse, aw as UserAccessoryType } from '../index-sk2XkpmT.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';
@@ -19,4 +19,5 @@ export { APIVipMember } from './api/APIVipMember.js';
19
19
  import '../structures/Collection.js';
20
20
  import 'events';
21
21
  import 'discord-api-types/v10';
22
+ import './api/APITimer.js';
22
23
  import './api/APITournament.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duque.edits/sdk",
3
- "version": "1.4.0",
3
+ "version": "1.4.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",