@duque.edits/sdk 1.5.4 → 1.6.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 (64) hide show
  1. package/dist/{index-CU0rmO1q.d.ts → index-BwmNIP2p.d.ts} +25 -46
  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/user/GuildUserManager.js +1 -2
  24. package/dist/managers/vipmember/VipMemberManager.d.ts +2 -1
  25. package/dist/rest/REST.d.ts +2 -1
  26. package/dist/rest/index.d.ts +2 -1
  27. package/dist/structures/automaticmessage/AutomaticMessage.d.ts +2 -1
  28. package/dist/structures/bet/GuildBet.d.ts +2 -1
  29. package/dist/structures/betuser/GuildBetUser.d.ts +2 -1
  30. package/dist/structures/guild/Guild.d.ts +2 -1
  31. package/dist/structures/guild/Guild.js +54 -1
  32. package/dist/structures/index.d.ts +2 -1
  33. package/dist/structures/logentry/LogEntry.d.ts +2 -1
  34. package/dist/structures/match/GuildMatch.d.ts +2 -1
  35. package/dist/structures/mediator/GuildMediator.d.ts +2 -1
  36. package/dist/structures/minesgame/MinesGame.d.ts +2 -1
  37. package/dist/structures/product/Product.d.ts +2 -1
  38. package/dist/structures/shop/Shop.d.ts +2 -1
  39. package/dist/structures/ticket/Ticket.d.ts +2 -1
  40. package/dist/structures/ticketpanel/TicketPanel.d.ts +2 -1
  41. package/dist/structures/tournament/Tournament.d.ts +2 -1
  42. package/dist/structures/user/GuildUser.d.ts +2 -1
  43. package/dist/structures/user/GuildUser.js +0 -44
  44. package/dist/structures/vipmember/VipMember.d.ts +2 -1
  45. package/dist/types/RestTypes.d.ts +2 -1
  46. package/dist/types/api/APIAutomaticMessage.d.ts +2 -1
  47. package/dist/types/api/APIBuff.d.ts +10 -0
  48. package/dist/types/api/APIBuff.js +16 -0
  49. package/dist/types/api/APIGuild.d.ts +2 -1
  50. package/dist/types/api/APIGuild.js +1 -0
  51. package/dist/types/api/APIGuildBet.d.ts +2 -1
  52. package/dist/types/api/APIGuildBetUser.d.ts +2 -1
  53. package/dist/types/api/APIGuildGroupedChannel.d.ts +2 -1
  54. package/dist/types/api/APIGuildMatch.d.ts +2 -1
  55. package/dist/types/api/APIGuildPermissions.d.ts +4 -2
  56. package/dist/types/api/APIGuildPermissions.js +3 -1
  57. package/dist/types/api/APIGuildUser.d.ts +2 -1
  58. package/dist/types/api/APILogEntry.d.ts +1 -0
  59. package/dist/types/api/APILogEntry.js +1 -0
  60. package/dist/types/api/APITicketPanel.d.ts +2 -1
  61. package/dist/types/api/index.d.ts +2 -1
  62. package/dist/types/api/index.js +2 -0
  63. package/dist/types/index.d.ts +2 -1
  64. package/package.json +2 -1
@@ -1,6 +1,7 @@
1
1
  import { APIAdvert } from './types/api/APIAdvert.js';
2
2
  import { APIBaseChannel } from './types/api/APIBaseChannel.js';
3
3
  import { APIBetChannel } from './types/api/APIBetChannel.js';
4
+ import { APIBuff } from './types/api/APIBuff.js';
4
5
  import { APICode } from './types/api/APICode.js';
5
6
  import './types/api/APIGiveaway.js';
6
7
  import { APIGuildAdvert } from './types/api/APIGuildAdvert.js';
@@ -98,6 +99,7 @@ interface RouletteSettings {
98
99
  tertiary_color: string;
99
100
  text_color: string;
100
101
  prizes: RoulettePrize[];
102
+ custom_banner: string;
101
103
  }
102
104
  declare enum AutomaticMessagesTypes {
103
105
  MatchStarted = "match_started",
@@ -128,7 +130,8 @@ declare enum GuildChannelsType {
128
130
  BettingChannel = "betting",
129
131
  BotWarningsChannel = "bot_warnings_channel",
130
132
  UserWarningsChannel = "user_warnings_channel",
131
- TicketRatingChannel = "ticket_rating_channel"
133
+ TicketRatingChannel = "ticket_rating_channel",
134
+ RouletteChannel = "roulette_channel"
132
135
  }
133
136
  interface APIGuild {
134
137
  /** Guild's id */
@@ -167,6 +170,7 @@ interface APIGuild {
167
170
  match_count: number;
168
171
  bet_count: number;
169
172
  timers: APITimer[];
173
+ buffs: APIBuff[];
170
174
  }
171
175
  interface GuildLogsWebhookUrls {
172
176
  queues: {
@@ -203,6 +207,13 @@ declare enum GuildTimerTypes {
203
207
  Giveaway = "giveaway"
204
208
  }
205
209
 
210
+ interface AutomaticMessagePayload {
211
+ content?: string;
212
+ embeds?: Partial<APIEmbed>[];
213
+ components?: any[];
214
+ attachments?: any[];
215
+ flags?: number;
216
+ }
206
217
  interface APIAutomaticMessage {
207
218
  id: string;
208
219
  _id: string;
@@ -211,13 +222,7 @@ interface APIAutomaticMessage {
211
222
  channel_ids: string[];
212
223
  type: AutomaticMessagesTypes;
213
224
  guild_id: string;
214
- message: {
215
- content: string;
216
- embeds: APIEmbed[];
217
- components: any[];
218
- attachments: any[];
219
- flags: number;
220
- };
225
+ message: AutomaticMessagePayload;
221
226
  interval_ms: number;
222
227
  createdAt: Date;
223
228
  updatedAt: Date;
@@ -918,36 +923,6 @@ declare class GuildUser implements APIGuildUser {
918
923
  setUpdate(data: Optional<APIGuildUser>): Promise<this>;
919
924
  delete(): Promise<boolean>;
920
925
  toJSON(): APIGuildUser;
921
- userDailyWrapper(user: Optional<APIGuildUser>): {
922
- daily: {
923
- points: number;
924
- wins: number;
925
- coins: number;
926
- losses: number;
927
- mvps: number;
928
- bets: number;
929
- date: Date;
930
- };
931
- consecutive_wins: number;
932
- id?: string;
933
- guild_id?: string;
934
- profile?: Profile;
935
- points?: number;
936
- creations?: number;
937
- wins?: number;
938
- adverts?: APIAdvert[];
939
- mvps?: number;
940
- coins?: number;
941
- losses?: number;
942
- games?: number;
943
- blacklist?: boolean;
944
- accessories?: Accessory[];
945
- original_channels?: OriginalChannels;
946
- spins?: number;
947
- used_codes?: string[];
948
- createdAt?: Date;
949
- updatedAt?: Date;
950
- };
951
926
  }
952
927
 
953
928
  interface RequestOptions<Payload> {
@@ -999,13 +974,7 @@ declare class AutomaticMessage {
999
974
  name: string;
1000
975
  admin_id: string;
1001
976
  channel_ids: string[];
1002
- message: {
1003
- content: string;
1004
- embeds: APIEmbed[];
1005
- components: any[];
1006
- attachments: any[];
1007
- flags: number;
1008
- };
977
+ message: AutomaticMessagePayload;
1009
978
  guild_id: string;
1010
979
  interval_ms: number;
1011
980
  createdAt: Date;
@@ -1480,6 +1449,7 @@ declare class Guild {
1480
1449
  timers: Collection<string, APITimer>;
1481
1450
  codes: Collection<string, APICode>;
1482
1451
  coin_symbol: string;
1452
+ buffs: Collection<string, APIBuff>;
1483
1453
  /**
1484
1454
  * The guild structure
1485
1455
  * @param data The guild's data
@@ -1517,6 +1487,15 @@ declare class Guild {
1517
1487
  toggleDailyCategory(category: keyof Omit<Daily, "date">): Promise<this>;
1518
1488
  setScores(name: AvailableScores, amount: number): Promise<this>;
1519
1489
  toggleMode(...mode: BaseMatchModes[]): Promise<this>;
1490
+ createBuff(data: Optional<APIBuff>): Promise<{
1491
+ _id: string;
1492
+ percentage: number;
1493
+ createdAt: Date;
1494
+ updatedAt: Date;
1495
+ role_id?: string;
1496
+ admin_id?: string;
1497
+ }>;
1498
+ deleteBuff(id: string): Promise<this>;
1520
1499
  toJSON(): APIGuild;
1521
1500
  }
1522
1501
  type AvailableScores = "win" | "loss" | "mvp" | "creator" | "coin";
@@ -1736,4 +1715,4 @@ declare class GuildTicketManager {
1736
1715
  set(data: APIGuildTicket | GuildTicket | APIGuildTicket[]): GuildTicket | Collection<string, GuildTicket>;
1737
1716
  }
1738
1717
 
1739
- 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 };
1718
+ export { GuildTimerTypes as $, type APIAutomaticMessage as A, BETSTATUS as B, type Confirm as C, type Daily as D, GuildBetUser as E, type FetchOptions$2 as F, Guild as G, GuildBetUserManager as H, GuildChannelsType as I, type GuildLogsWebhookUrls as J, GuildManager as K, GuildMatch as L, GuildMatchChannelsType as M, GuildMatchManager as N, GuildMatchMessagesType as O, GuildMediator as P, GuildMediatorManager as Q, REST as R, type GuildModes as S, GuildPermissionManager as T, type GuildPrices as U, type GuildScores as V, type GuildStatus as W, GuildStatusEnum as X, GuildTicket as Y, type GuildTicketConfiguration as Z, GuildTicketManager as _, type APIGuild as a, GuildUser as a0, GuildUserManager as a1, LogEntry as a2, LogManager as a3, type LogMessage as a4, type Logs as a5, MATCHSTATUS as a6, MATCHTYPES as a7, type MatchSelection as a8, MessagesManager as a9, ProductManager as aA, MinesGame as aa, MinesGameManager as ab, type Optional as ac, type OriginalChannel as ad, type OriginalChannels as ae, PlayerManager as af, type PlayerOption as ag, Product as ah, type Profile as ai, type ProfileCard as aj, type RequestOptions as ak, type RestEvents as al, type RoulettePrize as am, type RouletteSettings as an, STATES as ao, Shop as ap, ShopManager as aq, type StatusResponse as ar, type Structure as as, TicketPanel as at, TicketPanelManager as au, Tournament as av, TournamentManager as aw, UserAccessoryType as ax, VipMember as ay, VipMemberManager 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, type AutomaticMessagePayload as l, AutomaticMessagesTypes as m, type Banner as n, BaseManager as o, type BaseMatchModes as p, type BaseMatchStatus as q, BetChannelTypes as r, type BetQueue as s, BufferManager as t, type BufferMatch as u, type BufferTicket as v, type DailyCategories as w, type FetchReturn as x, GuildBet as y, GuildBetManager as z };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,11 @@
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-CU0rmO1q.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 AutomaticMessagePayload, m as AutomaticMessagesTypes, B as BETSTATUS, n as Banner, o as BaseManager, p as BaseMatchModes, q as BaseMatchStatus, r as BetChannelTypes, s as BetQueue, t as BufferManager, u as BufferMatch, v as BufferTicket, C as Confirm, D as Daily, w as DailyCategories, F as FetchOptions, x as FetchReturn, G as Guild, y as GuildBet, z as GuildBetManager, E as GuildBetUser, H as GuildBetUserManager, I as GuildChannelsType, J as GuildLogsWebhookUrls, K as GuildManager, L as GuildMatch, M as GuildMatchChannelsType, N as GuildMatchManager, O as GuildMatchMessagesType, P as GuildMediator, Q as GuildMediatorManager, S as GuildModes, T as GuildPermissionManager, U as GuildPrices, V as GuildScores, W as GuildStatus, X as GuildStatusEnum, Y as GuildTicket, Z as GuildTicketConfiguration, _ as GuildTicketManager, $ as GuildTimerTypes, a0 as GuildUser, a1 as GuildUserManager, a2 as LogEntry, a3 as LogManager, a4 as LogMessage, a5 as Logs, a6 as MATCHSTATUS, a7 as MATCHTYPES, a8 as MatchSelection, a9 as MessagesManager, aa as MinesGame, ab as MinesGameManager, ac as Optional, ad as OriginalChannel, ae as OriginalChannels, af as PlayerManager, ag as PlayerOption, ah as Product, ai as Profile, aj as ProfileCard, R as REST, ak as RequestOptions, al as RestEvents, am as RoulettePrize, an as RouletteSettings, ao as STATES, ap as Shop, aq as ShopManager, ar as StatusResponse, as as Structure, at as TicketPanel, au as TicketPanelManager, av as Tournament, aw as TournamentManager, ax as UserAccessoryType, ay as VipMember, az as VipMemberManager } from './index-BwmNIP2p.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';
5
5
  export { APIAdvert } from './types/api/APIAdvert.js';
6
6
  export { APIBaseChannel } from './types/api/APIBaseChannel.js';
7
7
  export { APIBetChannel } from './types/api/APIBetChannel.js';
8
+ export { APIBuff } from './types/api/APIBuff.js';
8
9
  export { APICode } from './types/api/APICode.js';
9
10
  export { APIGiveaway, GiveawayMessage, GiveawayWinners } from './types/api/APIGiveaway.js';
10
11
  export { APIGuildAdvert } from './types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { k as AutomaticMessageManager } from '../../index-CU0rmO1q.js';
1
+ export { k as AutomaticMessageManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { n as BaseManager } from '../index-CU0rmO1q.js';
1
+ export { o as BaseManager } from '../index-BwmNIP2p.js';
2
2
  import '../structures/Collection.js';
3
3
  import '../types/api/APIAdvert.js';
4
4
  import '../types/api/APIBaseChannel.js';
5
5
  import '../types/api/APIBetChannel.js';
6
+ import '../types/api/APIBuff.js';
6
7
  import '../types/api/APICode.js';
7
8
  import '../types/api/APIGiveaway.js';
8
9
  import '../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { F as FetchOptions, y as GuildBetManager } from '../../index-CU0rmO1q.js';
1
+ export { F as FetchOptions, z as GuildBetManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { E as GuildBetUserManager } from '../../index-CU0rmO1q.js';
1
+ export { H as GuildBetUserManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
1
  import '../../structures/Collection.js';
2
- export { s as BufferManager, t as BufferMatch, u as BufferTicket } from '../../index-CU0rmO1q.js';
2
+ export { t as BufferManager, u as BufferMatch, v as BufferTicket } from '../../index-BwmNIP2p.js';
3
3
  import '../../types/api/APIGuildTicket.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { J as GuildManager } from '../../index-CU0rmO1q.js';
1
+ export { K as GuildManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,7 +1,8 @@
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-CU0rmO1q.js';
1
+ export { k as AutomaticMessageManager, o as BaseManager, t as BufferManager, u as BufferMatch, v as BufferTicket, F as FetchOptions, x as FetchReturn, z as GuildBetManager, H as GuildBetUserManager, K as GuildManager, N as GuildMatchManager, Q as GuildMediatorManager, T as GuildPermissionManager, _ as GuildTicketManager, a1 as GuildUserManager, a3 as LogManager, a9 as MessagesManager, ab as MinesGameManager, af as PlayerManager, ag as PlayerOption, aq as ShopManager, as as Structure, au as TicketPanelManager, aw as TournamentManager, az as VipMemberManager } from '../index-BwmNIP2p.js';
2
2
  import '../types/api/APIAdvert.js';
3
3
  import '../types/api/APIBaseChannel.js';
4
4
  import '../types/api/APIBetChannel.js';
5
+ import '../types/api/APIBuff.js';
5
6
  import '../types/api/APICode.js';
6
7
  import '../types/api/APIGiveaway.js';
7
8
  import '../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
- export { a2 as LogManager } from '../../index-CU0rmO1q.js';
1
+ export { a3 as LogManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APILogEntry.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { M as GuildMatchManager } from '../../index-CU0rmO1q.js';
1
+ export { N as GuildMatchManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
- export { P as GuildMediatorManager } from '../../index-CU0rmO1q.js';
1
+ export { Q as GuildMediatorManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildMediator.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
- export { a8 as MessagesManager } from '../../index-CU0rmO1q.js';
1
+ export { a9 as MessagesManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIMessage.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
- export { aa as MinesGameManager } from '../../index-CU0rmO1q.js';
1
+ export { ab as MinesGameManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIMinesGame.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { S as GuildPermissionManager } from '../../index-CU0rmO1q.js';
1
+ export { T as GuildPermissionManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../types/api/APIGuildPermissions.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
1
  import '../../types/api/APIPlayer.js';
2
- export { ae as PlayerManager, af as PlayerOption, ar as Structure } from '../../index-CU0rmO1q.js';
2
+ export { af as PlayerManager, ag as PlayerOption, as as Structure } from '../../index-BwmNIP2p.js';
3
3
  import '../../structures/Collection.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
- export { az as ProductManager } from '../../index-CU0rmO1q.js';
1
+ export { aA as ProductManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIProduct.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
- export { ap as ShopManager } from '../../index-CU0rmO1q.js';
1
+ export { aq as ShopManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildShop.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
- export { Z as GuildTicketManager } from '../../index-CU0rmO1q.js';
1
+ export { _ as GuildTicketManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildTicket.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { w as FetchReturn, at as TicketPanelManager } from '../../index-CU0rmO1q.js';
1
+ export { x as FetchReturn, au as TicketPanelManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
- export { av as TournamentManager } from '../../index-CU0rmO1q.js';
1
+ export { aw as TournamentManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APITournament.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
1
  import '../../structures/Collection.js';
2
- export { a0 as GuildUserManager } from '../../index-CU0rmO1q.js';
2
+ export { a1 as GuildUserManager } from '../../index-BwmNIP2p.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -64,8 +64,7 @@ class GuildUserManager extends import_base.BaseManager {
64
64
  if (!user.id) continue;
65
65
  if (user instanceof import_GuildUser.GuildUser) user = user.toJSON();
66
66
  const _user = this.cache.get(user.id);
67
- const { daily, consecutive_wins } = _user.userDailyWrapper(user);
68
- payloadUsers.push({ ...user, daily, consecutive_wins });
67
+ payloadUsers.push({ ...user });
69
68
  }
70
69
  const url = this.base_url;
71
70
  const response = await this.rest.request({
@@ -1,9 +1,10 @@
1
- export { ay as VipMemberManager } from '../../index-CU0rmO1q.js';
1
+ export { az as VipMemberManager } from '../../index-BwmNIP2p.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIVipMember.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
1
  import 'events';
2
- export { R as REST } from '../index-CU0rmO1q.js';
2
+ export { R as REST } from '../index-BwmNIP2p.js';
3
3
  import '../structures/Collection.js';
4
4
  import '../types/api/APIAdvert.js';
5
5
  import '../types/api/APIBaseChannel.js';
6
6
  import '../types/api/APIBetChannel.js';
7
+ import '../types/api/APIBuff.js';
7
8
  import '../types/api/APICode.js';
8
9
  import '../types/api/APIGiveaway.js';
9
10
  import '../types/api/APIGuildAdvert.js';
@@ -1,10 +1,11 @@
1
1
  export { APIEndpoint, APIEndpoints } from './APIEndpoints.js';
2
2
  export { Routes } from './Routes.js';
3
- export { R as REST } from '../index-CU0rmO1q.js';
3
+ export { R as REST } from '../index-BwmNIP2p.js';
4
4
  import '../structures/Collection.js';
5
5
  import '../types/api/APIAdvert.js';
6
6
  import '../types/api/APIBaseChannel.js';
7
7
  import '../types/api/APIBetChannel.js';
8
+ import '../types/api/APIBuff.js';
8
9
  import '../types/api/APICode.js';
9
10
  import '../types/api/APIGiveaway.js';
10
11
  import '../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
1
  import 'discord-api-types/v10';
2
- export { j as AutomaticMessage } from '../../index-CU0rmO1q.js';
2
+ export { j as AutomaticMessage } from '../../index-BwmNIP2p.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { x as GuildBet } from '../../index-CU0rmO1q.js';
1
+ export { y as GuildBet } from '../../index-BwmNIP2p.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APIBetChannel.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,7 +1,8 @@
1
- export { z as GuildBetUser } from '../../index-CU0rmO1q.js';
1
+ export { E as GuildBetUser } from '../../index-BwmNIP2p.js';
2
2
  import '../../types/api/APIAdvert.js';
3
3
  import '../../types/api/APIBaseChannel.js';
4
4
  import '../../types/api/APIBetChannel.js';
5
+ import '../../types/api/APIBuff.js';
5
6
  import '../../types/api/APICode.js';
6
7
  import '../../types/api/APIGiveaway.js';
7
8
  import '../../types/api/APIGuildAdvert.js';
@@ -1,5 +1,6 @@
1
- export { G as Guild } from '../../index-CU0rmO1q.js';
1
+ export { G as Guild } from '../../index-BwmNIP2p.js';
2
2
  import '../Collection.js';
3
+ import '../../types/api/APIBuff.js';
3
4
  import '../../types/api/APITimer.js';
4
5
  import '../../types/api/APIGuildPermissions.js';
5
6
  import '../../types/api/APIGuildAdvert.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_randomKeyGenerator = require("../../utils/randomKeyGenerator");
39
40
  var import_Collection = require("../Collection");
40
41
  var _Guild_instances, update_fn;
41
42
  class Guild {
@@ -101,6 +102,7 @@ class Guild {
101
102
  __publicField(this, "timers");
102
103
  __publicField(this, "codes");
103
104
  __publicField(this, "coin_symbol");
105
+ __publicField(this, "buffs");
104
106
  this.data = data;
105
107
  this.rest = rest;
106
108
  this.id = data?.id;
@@ -197,6 +199,14 @@ class Guild {
197
199
  expiresAt: new Date(_timer.expiresAt)
198
200
  });
199
201
  }
202
+ this.buffs = new import_Collection.Collection();
203
+ for (let buff of data?.buffs || []) {
204
+ this.buffs.set(buff._id, {
205
+ ...buff,
206
+ createdAt: new Date(buff.createdAt),
207
+ updatedAt: new Date(buff.updatedAt)
208
+ });
209
+ }
200
210
  }
201
211
  async _start() {
202
212
  await Promise.all([
@@ -351,7 +361,8 @@ class Guild {
351
361
  secondary_color: !data.default ? data.secondary_color || this.roulette_settings.secondary_color || "#1A1A1A" : "#1A1A1A",
352
362
  tertiary_color: !data.default ? data.tertiary_color || this.roulette_settings.tertiary_color || "#2D2D2D" : "#2D2D2D",
353
363
  text_color: !data.default ? data.text_color || this.roulette_settings.text_color || "#ffffff" : "#ffffff",
354
- prizes: data.prizes || this.roulette_settings.prizes || []
364
+ prizes: data.prizes || this.roulette_settings.prizes || [],
365
+ custom_banner: data.custom_banner || this.roulette_settings.custom_banner || ""
355
366
  }
356
367
  };
357
368
  return this.update(_data);
@@ -554,6 +565,37 @@ class Guild {
554
565
  });
555
566
  return __privateMethod(this, _Guild_instances, update_fn).call(this, response);
556
567
  }
568
+ async createBuff(data) {
569
+ if (!data.admin_id) return;
570
+ const buffer = this.buffs.find((b) => b.role_id === data.role_id);
571
+ if (buffer) this.buffs.delete(buffer._id);
572
+ const payload = {
573
+ ...data,
574
+ _id: (0, import_randomKeyGenerator.randomKeyGenerator)(24, "hex").toLowerCase(),
575
+ percentage: Math.floor(data?.percentage) || 5,
576
+ createdAt: /* @__PURE__ */ new Date(),
577
+ updatedAt: /* @__PURE__ */ new Date()
578
+ };
579
+ this.buffs.set(payload._id, payload);
580
+ const route = import_Routes.Routes.guilds.get(this.id);
581
+ const response = await this.rest.request({
582
+ payload: { buffs: this.buffs.toArray() },
583
+ url: route,
584
+ method: "PATCH"
585
+ });
586
+ await __privateMethod(this, _Guild_instances, update_fn).call(this, response);
587
+ return payload;
588
+ }
589
+ async deleteBuff(id) {
590
+ this.buffs.delete(id);
591
+ const route = import_Routes.Routes.guilds.get(this.id);
592
+ const response = await this.rest.request({
593
+ payload: { buffs: this.buffs.toArray() },
594
+ url: route,
595
+ method: "PATCH"
596
+ });
597
+ return __privateMethod(this, _Guild_instances, update_fn).call(this, response);
598
+ }
557
599
  toJSON() {
558
600
  return {
559
601
  adverts: this.adverts,
@@ -577,6 +619,7 @@ class Guild {
577
619
  scores: this.scores,
578
620
  status: this.status,
579
621
  timers: this.timers.toArray(),
622
+ buffs: this.buffs.toArray(),
580
623
  tickets_configuration: this.tickets_configuration,
581
624
  updatedAt: this.updatedAt,
582
625
  webhook_urls: this.webhook_urls
@@ -633,6 +676,16 @@ update_fn = function(data) {
633
676
  continue;
634
677
  }
635
678
  }
679
+ if ("buffs" in data) {
680
+ this.buffs = new import_Collection.Collection();
681
+ for (let buff of data?.buffs || []) {
682
+ this.buffs.set(buff._id, {
683
+ ...buff,
684
+ createdAt: new Date(buff.createdAt),
685
+ updatedAt: new Date(buff.updatedAt)
686
+ });
687
+ }
688
+ }
636
689
  this.updatedAt = /* @__PURE__ */ new Date();
637
690
  this.rest.guilds.cache.set(this.id, this);
638
691
  this.rest.emit("guildUpdate", this);
@@ -1,8 +1,9 @@
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-CU0rmO1q.js';
1
+ export { j as AutomaticMessage, G as Guild, y as GuildBet, E as GuildBetUser, L as GuildMatch, P as GuildMediator, Y as GuildTicket, a0 as GuildUser, a2 as LogEntry, aa as MinesGame, ah as Product, ap as Shop, at as TicketPanel, av as Tournament, ay as VipMember } from '../index-BwmNIP2p.js';
2
2
  export { Collection } from './Collection.js';
3
3
  import '../types/api/APIAdvert.js';
4
4
  import '../types/api/APIBaseChannel.js';
5
5
  import '../types/api/APIBetChannel.js';
6
+ import '../types/api/APIBuff.js';
6
7
  import '../types/api/APICode.js';
7
8
  import '../types/api/APIGiveaway.js';
8
9
  import '../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { a1 as LogEntry } from '../../index-CU0rmO1q.js';
1
+ export { a2 as LogEntry } from '../../index-BwmNIP2p.js';
2
2
  import '../../types/api/APILogEntry.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { K as GuildMatch } from '../../index-CU0rmO1q.js';
1
+ export { L as GuildMatch } from '../../index-BwmNIP2p.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APIBaseChannel.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { O as GuildMediator } from '../../index-CU0rmO1q.js';
1
+ export { P as GuildMediator } from '../../index-BwmNIP2p.js';
2
2
  import '../../types/api/APIGuildMediator.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { a9 as MinesGame } from '../../index-CU0rmO1q.js';
1
+ export { aa as MinesGame } from '../../index-BwmNIP2p.js';
2
2
  import '../../types/api/APIMinesGame.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
- export { ag as Product } from '../../index-CU0rmO1q.js';
1
+ export { ah as Product } from '../../index-BwmNIP2p.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APIProduct.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
1
  import 'discord-api-types/v10';
2
- export { ao as Shop } from '../../index-CU0rmO1q.js';
2
+ export { ap as Shop } from '../../index-BwmNIP2p.js';
3
3
  import '../../types/api/APIGuildShop.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
- export { X as GuildTicket } from '../../index-CU0rmO1q.js';
1
+ export { Y as GuildTicket } from '../../index-BwmNIP2p.js';
2
2
  import '../../types/api/APIGuildTicket.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
1
  import 'discord-api-types/v10';
2
- export { as as TicketPanel } from '../../index-CU0rmO1q.js';
2
+ export { at as TicketPanel } from '../../index-BwmNIP2p.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
- export { au as Tournament } from '../../index-CU0rmO1q.js';
1
+ export { av as Tournament } from '../../index-BwmNIP2p.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APITournament.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIBaseChannel.js';
6
6
  import '../../types/api/APIBetChannel.js';
7
+ import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
8
9
  import '../../types/api/APIGiveaway.js';
9
10
  import '../../types/api/APIGuildAdvert.js';
@@ -1,7 +1,8 @@
1
- export { $ as GuildUser } from '../../index-CU0rmO1q.js';
1
+ export { a0 as GuildUser } from '../../index-BwmNIP2p.js';
2
2
  import '../../types/api/APIAdvert.js';
3
3
  import '../../types/api/APIBaseChannel.js';
4
4
  import '../../types/api/APIBetChannel.js';
5
+ import '../../types/api/APIBuff.js';
5
6
  import '../../types/api/APICode.js';
6
7
  import '../../types/api/APIGiveaway.js';
7
8
  import '../../types/api/APIGuildAdvert.js';
@@ -31,7 +31,6 @@ __export(GuildUser_exports, {
31
31
  module.exports = __toCommonJS(GuildUser_exports);
32
32
  var import_Routes = require("../../rest/Routes");
33
33
  var import_api = require("../../types/api");
34
- var import_isSameDayUTC = require("../../utils/isSameDayUTC");
35
34
  var import_clamp0 = require("../../utils/clamp0");
36
35
  var _GuildUser_instances, update_fn;
37
36
  const _GuildUser = class _GuildUser {
@@ -368,9 +367,6 @@ const _GuildUser = class _GuildUser {
368
367
  if (!data?.type) data.type = "add";
369
368
  const url = import_Routes.Routes.guilds.users.get(this.manager.guild.id, this.id);
370
369
  let payload = {};
371
- const wrapped = this.userDailyWrapper(data);
372
- payload["daily"] = wrapped.daily;
373
- payload["consecutive_wins"] = wrapped.consecutive_wins;
374
370
  const numericFields = [
375
371
  "wins",
376
372
  "points",
@@ -468,46 +464,6 @@ const _GuildUser = class _GuildUser {
468
464
  wins: this.wins
469
465
  };
470
466
  }
471
- userDailyWrapper(user) {
472
- const now = /* @__PURE__ */ new Date();
473
- const sameDay = !!this.daily?.date && (0, import_isSameDayUTC.isSameDateUTC)(this.daily.date, now);
474
- const prev = this.daily ?? {
475
- points: 0,
476
- wins: 0,
477
- coins: 0,
478
- losses: 0,
479
- mvps: 0,
480
- bets: 0,
481
- date: now
482
- };
483
- const inc = {
484
- points: user?.points || 0,
485
- wins: user?.wins ?? 0,
486
- coins: user?.coins || 0,
487
- losses: user?.losses || 0,
488
- mvps: user?.mvps || 0,
489
- bets: user?.daily?.bets || 0
490
- };
491
- const daily = {
492
- points: (0, import_clamp0.clamp0)((sameDay ? prev.points : 0) + inc.points),
493
- wins: (0, import_clamp0.clamp0)((sameDay ? prev.wins : 0) + inc.wins),
494
- coins: (0, import_clamp0.clamp0)((sameDay ? prev.coins : 0) + inc.coins),
495
- losses: (0, import_clamp0.clamp0)((sameDay ? prev.losses : 0) + inc.losses),
496
- mvps: (0, import_clamp0.clamp0)((sameDay ? prev.mvps : 0) + inc.mvps),
497
- bets: (0, import_clamp0.clamp0)((sameDay ? prev.bets : 0) + inc.bets),
498
- date: now
499
- };
500
- const hasGainedWins = inc.wins > 0;
501
- const hasLostToday = inc.losses > 0;
502
- let consecutive = user?.consecutive_wins ?? this.consecutive_wins ?? 0;
503
- if (hasLostToday) consecutive = 0;
504
- else if (hasGainedWins) consecutive += 1;
505
- return {
506
- ...user,
507
- daily,
508
- consecutive_wins: consecutive
509
- };
510
- }
511
467
  };
512
468
  _GuildUser_instances = new WeakSet();
513
469
  update_fn = function(data) {
@@ -1,8 +1,9 @@
1
- export { ax as VipMember } from '../../index-CU0rmO1q.js';
1
+ export { ay as VipMember } from '../../index-BwmNIP2p.js';
2
2
  import '../../types/api/APIVipMember.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIBaseChannel.js';
5
5
  import '../../types/api/APIBetChannel.js';
6
+ import '../../types/api/APIBuff.js';
6
7
  import '../../types/api/APICode.js';
7
8
  import '../../types/api/APIGiveaway.js';
8
9
  import '../../types/api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
1
  import '../structures/Collection.js';
2
- export { aj as RequestOptions, ak as RestEvents } from '../index-CU0rmO1q.js';
2
+ export { ak as RequestOptions, al as RestEvents } from '../index-BwmNIP2p.js';
3
3
  import './api/APIAdvert.js';
4
4
  import './api/APIBaseChannel.js';
5
5
  import './api/APIBetChannel.js';
6
+ import './api/APIBuff.js';
6
7
  import './api/APICode.js';
7
8
  import './api/APIGiveaway.js';
8
9
  import './api/APIGuildAdvert.js';
@@ -1,8 +1,9 @@
1
1
  import 'discord-api-types/v10';
2
- export { A as APIAutomaticMessage } from '../../index-CU0rmO1q.js';
2
+ export { A as APIAutomaticMessage, l as AutomaticMessagePayload } from '../../index-BwmNIP2p.js';
3
3
  import './APIAdvert.js';
4
4
  import './APIBaseChannel.js';
5
5
  import './APIBetChannel.js';
6
+ import './APIBuff.js';
6
7
  import './APICode.js';
7
8
  import './APIGiveaway.js';
8
9
  import './APIGuildAdvert.js';
@@ -0,0 +1,10 @@
1
+ interface APIBuff {
2
+ role_id: string;
3
+ percentage: number;
4
+ admin_id: string;
5
+ _id: string;
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ }
9
+
10
+ export type { APIBuff };
@@ -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 APIBuff_exports = {};
16
+ module.exports = __toCommonJS(APIBuff_exports);
@@ -1,4 +1,5 @@
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-CU0rmO1q.js';
1
+ export { a as APIGuild, m as AutomaticMessagesTypes, w as DailyCategories, I as GuildChannelsType, J as GuildLogsWebhookUrls, S as GuildModes, U as GuildPrices, V as GuildScores, W as GuildStatus, X as GuildStatusEnum, Z as GuildTicketConfiguration, $ as GuildTimerTypes, am as RoulettePrize, an as RouletteSettings } from '../../index-BwmNIP2p.js';
2
+ import './APIBuff.js';
2
3
  import './APIGuildPermissions.js';
3
4
  import './APITimer.js';
4
5
  import './APIGuildAdvert.js';
@@ -68,6 +68,7 @@ var GuildChannelsType = /* @__PURE__ */ ((GuildChannelsType2) => {
68
68
  GuildChannelsType2["BotWarningsChannel"] = "bot_warnings_channel";
69
69
  GuildChannelsType2["UserWarningsChannel"] = "user_warnings_channel";
70
70
  GuildChannelsType2["TicketRatingChannel"] = "ticket_rating_channel";
71
+ GuildChannelsType2["RouletteChannel"] = "roulette_channel";
71
72
  return GuildChannelsType2;
72
73
  })(GuildChannelsType || {});
73
74
  var GuildTimerTypes = /* @__PURE__ */ ((GuildTimerTypes2) => {
@@ -1,9 +1,10 @@
1
- export { b as APIGuildBet, q as BetChannelTypes, r as BetQueue } from '../../index-CU0rmO1q.js';
1
+ export { b as APIGuildBet, r as BetChannelTypes, s as BetQueue } from '../../index-BwmNIP2p.js';
2
2
  import './APIBetChannel.js';
3
3
  import './APIMessage.js';
4
4
  import './APIPlayer.js';
5
5
  import './APIAdvert.js';
6
6
  import './APIBaseChannel.js';
7
+ import './APIBuff.js';
7
8
  import './APICode.js';
8
9
  import './APIGiveaway.js';
9
10
  import './APIGuildAdvert.js';
@@ -1,7 +1,8 @@
1
- export { c as APIGuildBetUser } from '../../index-CU0rmO1q.js';
1
+ export { c as APIGuildBetUser } from '../../index-BwmNIP2p.js';
2
2
  import './APIAdvert.js';
3
3
  import './APIBaseChannel.js';
4
4
  import './APIBetChannel.js';
5
+ import './APIBuff.js';
5
6
  import './APICode.js';
6
7
  import './APIGiveaway.js';
7
8
  import './APIGuildAdvert.js';
@@ -1,7 +1,8 @@
1
- export { d as APIGuildGroupedChannel } from '../../index-CU0rmO1q.js';
1
+ export { d as APIGuildGroupedChannel } from '../../index-BwmNIP2p.js';
2
2
  import './APIAdvert.js';
3
3
  import './APIBaseChannel.js';
4
4
  import './APIBetChannel.js';
5
+ import './APIBuff.js';
5
6
  import './APICode.js';
6
7
  import './APIGiveaway.js';
7
8
  import './APIGuildAdvert.js';
@@ -1,9 +1,10 @@
1
- export { e as APIGuildMatch, L as GuildMatchChannelsType, N as GuildMatchMessagesType, a7 as MatchSelection } from '../../index-CU0rmO1q.js';
1
+ export { e as APIGuildMatch, M as GuildMatchChannelsType, O as GuildMatchMessagesType, a8 as MatchSelection } from '../../index-BwmNIP2p.js';
2
2
  import './APIPlayer.js';
3
3
  import './APIBaseChannel.js';
4
4
  import './APIMessage.js';
5
5
  import './APIAdvert.js';
6
6
  import './APIBetChannel.js';
7
+ import './APIBuff.js';
7
8
  import './APICode.js';
8
9
  import './APIGiveaway.js';
9
10
  import './APIGuildAdvert.js';
@@ -10,7 +10,6 @@ declare enum GuildPermissionsTypes {
10
10
  ManageUsers = "manage_users",
11
11
  ManageScores = "manage_scores",
12
12
  ManageQueues = "manage_queues",
13
- ViewQueueChannels = "view_queue_channels",
14
13
  EnterQueueVoiceChannels = "enter_queue_voice_channels",
15
14
  ViewQueueTextChannels = "view_queue_text_channels",
16
15
  CreatePersonalizedMessages = "create_personalized_messages",
@@ -27,7 +26,10 @@ declare enum GuildPermissionsTypes {
27
26
  CreateShop = "create_shop",
28
27
  DeliverShopProduct = "deliver_shop_product",
29
28
  CreateQueueFromAnyChannel = "create_queues_from_any_channel",
30
- PunishMembers = "punish_members"
29
+ PunishMembers = "punish_members",
30
+ ChangeNick = "change_nick",
31
+ GiveWarnings = "give_warnings",
32
+ ManageBlacklist = "manage_blacklist"
31
33
  }
32
34
 
33
35
  export { type APIGuildPermissions, GuildPermissionsTypes, type Permission };
@@ -28,7 +28,6 @@ var GuildPermissionsTypes = /* @__PURE__ */ ((GuildPermissionsTypes2) => {
28
28
  GuildPermissionsTypes2["ManageUsers"] = "manage_users";
29
29
  GuildPermissionsTypes2["ManageScores"] = "manage_scores";
30
30
  GuildPermissionsTypes2["ManageQueues"] = "manage_queues";
31
- GuildPermissionsTypes2["ViewQueueChannels"] = "view_queue_channels";
32
31
  GuildPermissionsTypes2["EnterQueueVoiceChannels"] = "enter_queue_voice_channels";
33
32
  GuildPermissionsTypes2["ViewQueueTextChannels"] = "view_queue_text_channels";
34
33
  GuildPermissionsTypes2["CreatePersonalizedMessages"] = "create_personalized_messages";
@@ -46,6 +45,9 @@ var GuildPermissionsTypes = /* @__PURE__ */ ((GuildPermissionsTypes2) => {
46
45
  GuildPermissionsTypes2["DeliverShopProduct"] = "deliver_shop_product";
47
46
  GuildPermissionsTypes2["CreateQueueFromAnyChannel"] = "create_queues_from_any_channel";
48
47
  GuildPermissionsTypes2["PunishMembers"] = "punish_members";
48
+ GuildPermissionsTypes2["ChangeNick"] = "change_nick";
49
+ GuildPermissionsTypes2["GiveWarnings"] = "give_warnings";
50
+ GuildPermissionsTypes2["ManageBlacklist"] = "manage_blacklist";
49
51
  return GuildPermissionsTypes2;
50
52
  })(GuildPermissionsTypes || {});
51
53
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,7 +1,8 @@
1
- export { f as APIGuildUser, ah as Profile } from '../../index-CU0rmO1q.js';
1
+ export { f as APIGuildUser, ai as Profile } from '../../index-BwmNIP2p.js';
2
2
  import './APIAdvert.js';
3
3
  import './APIBaseChannel.js';
4
4
  import './APIBetChannel.js';
5
+ import './APIBuff.js';
5
6
  import './APICode.js';
6
7
  import './APIGiveaway.js';
7
8
  import './APIGuildAdvert.js';
@@ -14,6 +14,7 @@ declare enum LogEntryTypes {
14
14
  UserCreations = "user_creations",
15
15
  UserCredits = "user_credits",
16
16
  RoulleteSpinsGained = "roullete_spins_gained",
17
+ RoulleteSpinsLost = "roullete_spins_removed",
17
18
  RoulleteSpinsUsed = "roullete_spins_used",
18
19
  ProductRedeemed = "shop_product_redeemed",
19
20
  BetManaged = "bet_managed",
@@ -37,6 +37,7 @@ var LogEntryTypes = /* @__PURE__ */ ((LogEntryTypes2) => {
37
37
  LogEntryTypes2["UserCreations"] = "user_creations";
38
38
  LogEntryTypes2["UserCredits"] = "user_credits";
39
39
  LogEntryTypes2["RoulleteSpinsGained"] = "roullete_spins_gained";
40
+ LogEntryTypes2["RoulleteSpinsLost"] = "roullete_spins_removed";
40
41
  LogEntryTypes2["RoulleteSpinsUsed"] = "roullete_spins_used";
41
42
  LogEntryTypes2["ProductRedeemed"] = "shop_product_redeemed";
42
43
  LogEntryTypes2["BetManaged"] = "bet_managed";
@@ -1,8 +1,9 @@
1
1
  import 'discord-api-types/v10';
2
- export { h as APITicketPanel } from '../../index-CU0rmO1q.js';
2
+ export { h as APITicketPanel } from '../../index-BwmNIP2p.js';
3
3
  import './APIAdvert.js';
4
4
  import './APIBaseChannel.js';
5
5
  import './APIBetChannel.js';
6
+ import './APIBuff.js';
6
7
  import './APICode.js';
7
8
  import './APIGiveaway.js';
8
9
  import './APIGuildAdvert.js';
@@ -1,7 +1,8 @@
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, _ 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-CU0rmO1q.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 AutomaticMessagePayload, m as AutomaticMessagesTypes, B as BETSTATUS, n as Banner, p as BaseMatchModes, q as BaseMatchStatus, r as BetChannelTypes, s as BetQueue, C as Confirm, D as Daily, w as DailyCategories, I as GuildChannelsType, J as GuildLogsWebhookUrls, M as GuildMatchChannelsType, O as GuildMatchMessagesType, S as GuildModes, U as GuildPrices, V as GuildScores, W as GuildStatus, X as GuildStatusEnum, Z as GuildTicketConfiguration, $ as GuildTimerTypes, a4 as LogMessage, a5 as Logs, a6 as MATCHSTATUS, a7 as MATCHTYPES, a8 as MatchSelection, ac as Optional, ad as OriginalChannel, ae as OriginalChannels, ai as Profile, aj as ProfileCard, am as RoulettePrize, an as RouletteSettings, ao as STATES, ar as StatusResponse, ax as UserAccessoryType } from '../../index-BwmNIP2p.js';
3
3
  export { APIBaseChannel } from './APIBaseChannel.js';
4
4
  export { APIBetChannel } from './APIBetChannel.js';
5
+ export { APIBuff } from './APIBuff.js';
5
6
  export { APICode } from './APICode.js';
6
7
  export { APIGiveaway, GiveawayMessage, GiveawayWinners } from './APIGiveaway.js';
7
8
  export { APIGuildAdvert } from './APIGuildAdvert.js';
@@ -30,6 +30,7 @@ __reExport(api_exports, require("./APIAdvert"), module.exports);
30
30
  __reExport(api_exports, require("./APIAutomaticMessage"), module.exports);
31
31
  __reExport(api_exports, require("./APIBaseChannel"), module.exports);
32
32
  __reExport(api_exports, require("./APIBetChannel"), module.exports);
33
+ __reExport(api_exports, require("./APIBuff"), module.exports);
33
34
  __reExport(api_exports, require("./APICode"), module.exports);
34
35
  __reExport(api_exports, require("./APIGiveaway"), module.exports);
35
36
  __reExport(api_exports, require("./APIGuild"), module.exports);
@@ -100,6 +101,7 @@ var STATES = /* @__PURE__ */ ((STATES2) => {
100
101
  ...require("./APIAutomaticMessage"),
101
102
  ...require("./APIBaseChannel"),
102
103
  ...require("./APIBetChannel"),
104
+ ...require("./APIBuff"),
103
105
  ...require("./APICode"),
104
106
  ...require("./APIGiveaway"),
105
107
  ...require("./APIGuild"),
@@ -1,7 +1,8 @@
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-CU0rmO1q.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 AutomaticMessagePayload, m as AutomaticMessagesTypes, B as BETSTATUS, n as Banner, p as BaseMatchModes, q as BaseMatchStatus, r as BetChannelTypes, s as BetQueue, C as Confirm, D as Daily, w as DailyCategories, I as GuildChannelsType, J as GuildLogsWebhookUrls, M as GuildMatchChannelsType, O as GuildMatchMessagesType, S as GuildModes, U as GuildPrices, V as GuildScores, W as GuildStatus, X as GuildStatusEnum, Z as GuildTicketConfiguration, $ as GuildTimerTypes, a4 as LogMessage, a5 as Logs, a6 as MATCHSTATUS, a7 as MATCHTYPES, a8 as MatchSelection, ac as Optional, ad as OriginalChannel, ae as OriginalChannels, ai as Profile, aj as ProfileCard, ak as RequestOptions, al as RestEvents, am as RoulettePrize, an as RouletteSettings, ao as STATES, ar as StatusResponse, ax as UserAccessoryType } from '../index-BwmNIP2p.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';
5
+ export { APIBuff } from './api/APIBuff.js';
5
6
  export { APICode } from './api/APICode.js';
6
7
  export { APIGiveaway, GiveawayMessage, GiveawayWinners } from './api/APIGiveaway.js';
7
8
  export { APIGuildAdvert } from './api/APIGuildAdvert.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duque.edits/sdk",
3
- "version": "1.5.4",
3
+ "version": "1.6.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -20,6 +20,7 @@
20
20
  "scripts": {
21
21
  "test": "ts-node --transpile-only tests/index.ts",
22
22
  "match": "ts-node --transpile-only tests/match.ts",
23
+ "messages": "ts-node --transpile-only tests/messages.ts",
23
24
  "guild": "ts-node --transpile-only tests/guild.ts",
24
25
  "user": "ts-node --transpile-only tests/user.ts",
25
26
  "bet": "ts-node --transpile-only tests/bet.ts",