@duque.edits/sdk 1.7.3 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/{index-iLzxxeFt.d.ts → index-MduLkAS9.d.ts} +11 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/managers/automaticmessage/AutomaticMessageManager.d.ts +1 -1
  4. package/dist/managers/base.d.ts +1 -1
  5. package/dist/managers/bet/GuildBetManager.d.ts +1 -1
  6. package/dist/managers/betuser/GuildBetUserManager.d.ts +1 -1
  7. package/dist/managers/buffer/BufferManager.d.ts +1 -1
  8. package/dist/managers/guild/GuildManager.d.ts +1 -1
  9. package/dist/managers/index.d.ts +1 -1
  10. package/dist/managers/logs/LogManager.d.ts +1 -1
  11. package/dist/managers/match/GuildMatchManager.d.ts +1 -1
  12. package/dist/managers/mediator/GuildMediatorManager.d.ts +1 -1
  13. package/dist/managers/message/MessagesManager.d.ts +1 -1
  14. package/dist/managers/minesgame/MinesGameManager.d.ts +1 -1
  15. package/dist/managers/permission/GuildPermissionManager.d.ts +1 -1
  16. package/dist/managers/player/PlayerManager.d.ts +1 -1
  17. package/dist/managers/product/ProductManager.d.ts +1 -1
  18. package/dist/managers/shop/ShopManager.d.ts +1 -1
  19. package/dist/managers/ticket/TicketManager.d.ts +1 -1
  20. package/dist/managers/ticketpanel/TicketPanelManager.d.ts +1 -1
  21. package/dist/managers/tournament/TournamentManager.d.ts +1 -1
  22. package/dist/managers/user/GuildUserManager.d.ts +1 -1
  23. package/dist/managers/user/GuildUserManager.js +21 -1
  24. package/dist/managers/vipmember/VipMemberManager.d.ts +1 -1
  25. package/dist/rest/REST.d.ts +1 -1
  26. package/dist/rest/REST.js +0 -1
  27. package/dist/rest/index.d.ts +1 -1
  28. package/dist/structures/automaticmessage/AutomaticMessage.d.ts +1 -1
  29. package/dist/structures/bet/GuildBet.d.ts +1 -1
  30. package/dist/structures/betuser/GuildBetUser.d.ts +1 -1
  31. package/dist/structures/guild/Guild.d.ts +1 -1
  32. package/dist/structures/index.d.ts +1 -1
  33. package/dist/structures/logentry/LogEntry.d.ts +1 -1
  34. package/dist/structures/match/GuildMatch.d.ts +1 -1
  35. package/dist/structures/mediator/GuildMediator.d.ts +1 -1
  36. package/dist/structures/minesgame/MinesGame.d.ts +1 -1
  37. package/dist/structures/product/Product.d.ts +1 -1
  38. package/dist/structures/shop/Shop.d.ts +1 -1
  39. package/dist/structures/ticket/Ticket.d.ts +1 -1
  40. package/dist/structures/ticketpanel/TicketPanel.d.ts +1 -1
  41. package/dist/structures/tournament/Tournament.d.ts +1 -1
  42. package/dist/structures/user/GuildUser.d.ts +1 -1
  43. package/dist/structures/user/GuildUser.js +18 -1
  44. package/dist/structures/vipmember/VipMember.d.ts +1 -1
  45. package/dist/types/RestTypes.d.ts +1 -1
  46. package/dist/types/api/APIAutomaticMessage.d.ts +1 -1
  47. package/dist/types/api/APIGuild.d.ts +1 -1
  48. package/dist/types/api/APIGuildBet.d.ts +1 -1
  49. package/dist/types/api/APIGuildBetUser.d.ts +1 -1
  50. package/dist/types/api/APIGuildGroupedChannel.d.ts +1 -1
  51. package/dist/types/api/APIGuildMatch.d.ts +1 -1
  52. package/dist/types/api/APIGuildUser.d.ts +1 -1
  53. package/dist/types/api/APITicketPanel.d.ts +1 -1
  54. package/dist/types/api/index.d.ts +1 -1
  55. package/dist/types/index.d.ts +1 -1
  56. package/package.json +1 -1
@@ -589,6 +589,11 @@ interface APIGuildUser {
589
589
  original_channels: OriginalChannels;
590
590
  spins: number;
591
591
  used_codes: string[];
592
+ blacklist_info: {
593
+ reason: string;
594
+ admin_id: string;
595
+ createdAt: Date;
596
+ };
592
597
  /** Creation Date */
593
598
  createdAt: Date;
594
599
  /** Updated Date */
@@ -606,6 +611,7 @@ declare class GuildUserManager extends BaseManager<GuildUser> {
606
611
  updateMany(...users: Optional<APIGuildUser>[]): Promise<Collection<string, GuildUser>>;
607
612
  deleteAll(): Promise<void>;
608
613
  resetAll(): Promise<Collection<string, GuildUser>>;
614
+ setUpdated(data: APIGuildUser | APIGuildUser[]): GuildUser | Collection<string, GuildUser>;
609
615
  set(data: APIGuildUser | APIGuildUser[]): GuildUser | Collection<string, GuildUser>;
610
616
  toJSON(): APIGuildUser[];
611
617
  }
@@ -641,6 +647,11 @@ declare class GuildUser implements APIGuildUser {
641
647
  coins: number;
642
648
  consecutive_wins: number;
643
649
  used_codes: string[];
650
+ blacklist_info: {
651
+ reason: string;
652
+ createdAt: Date;
653
+ admin_id: string;
654
+ };
644
655
  /** Creation Date */
645
656
  createdAt: Date;
646
657
  /** Updated Date */
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 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-iLzxxeFt.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-MduLkAS9.js';
2
2
  export { Collection } from './structures/Collection.js';
3
3
  export { APIEndpoint, APIEndpoints } from './rest/APIEndpoints.js';
4
4
  export { Routes } from './rest/Routes.js';
@@ -1,4 +1,4 @@
1
- export { k as AutomaticMessageManager } from '../../index-iLzxxeFt.js';
1
+ export { k as AutomaticMessageManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
@@ -1,4 +1,4 @@
1
- export { o as BaseManager } from '../index-iLzxxeFt.js';
1
+ export { o as BaseManager } from '../index-MduLkAS9.js';
2
2
  import '../structures/Collection.js';
3
3
  import '../types/api/APIAdvert.js';
4
4
  import '../types/api/APIAutomaticRole.js';
@@ -1,4 +1,4 @@
1
- export { F as FetchOptions, z as GuildBetManager } from '../../index-iLzxxeFt.js';
1
+ export { F as FetchOptions, z as GuildBetManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
@@ -1,4 +1,4 @@
1
- export { H as GuildBetUserManager } from '../../index-iLzxxeFt.js';
1
+ export { H as GuildBetUserManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
@@ -1,5 +1,5 @@
1
1
  import '../../structures/Collection.js';
2
- export { t as BufferManager, u as BufferMatch, v as BufferTicket } from '../../index-iLzxxeFt.js';
2
+ export { t as BufferManager, u as BufferMatch, v as BufferTicket } from '../../index-MduLkAS9.js';
3
3
  import '../../types/api/APIGuildTicket.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIAutomaticRole.js';
@@ -1,4 +1,4 @@
1
- export { K as GuildManager } from '../../index-iLzxxeFt.js';
1
+ export { K as GuildManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
@@ -1,4 +1,4 @@
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-iLzxxeFt.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-MduLkAS9.js';
2
2
  import '../types/api/APIAdvert.js';
3
3
  import '../types/api/APIAutomaticRole.js';
4
4
  import '../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { a3 as LogManager } from '../../index-iLzxxeFt.js';
1
+ export { a3 as LogManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APILogEntry.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { N as GuildMatchManager } from '../../index-iLzxxeFt.js';
1
+ export { N as GuildMatchManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
@@ -1,4 +1,4 @@
1
- export { Q as GuildMediatorManager } from '../../index-iLzxxeFt.js';
1
+ export { Q as GuildMediatorManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildMediator.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { a9 as MessagesManager } from '../../index-iLzxxeFt.js';
1
+ export { a9 as MessagesManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIMessage.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { ab as MinesGameManager } from '../../index-iLzxxeFt.js';
1
+ export { ab as MinesGameManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIMinesGame.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { T as GuildPermissionManager } from '../../index-iLzxxeFt.js';
1
+ export { T as GuildPermissionManager } from '../../index-MduLkAS9.js';
2
2
  import '../../types/api/APIGuildPermissions.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
@@ -1,5 +1,5 @@
1
1
  import '../../types/api/APIPlayer.js';
2
- export { af as PlayerManager, ag as PlayerOption, as as Structure } from '../../index-iLzxxeFt.js';
2
+ export { af as PlayerManager, ag as PlayerOption, as as Structure } from '../../index-MduLkAS9.js';
3
3
  import '../../structures/Collection.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIAutomaticRole.js';
@@ -1,4 +1,4 @@
1
- export { aA as ProductManager } from '../../index-iLzxxeFt.js';
1
+ export { aA as ProductManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIProduct.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { aq as ShopManager } from '../../index-iLzxxeFt.js';
1
+ export { aq as ShopManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildShop.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { _ as GuildTicketManager } from '../../index-iLzxxeFt.js';
1
+ export { _ as GuildTicketManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildTicket.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { x as FetchReturn, au as TicketPanelManager } from '../../index-iLzxxeFt.js';
1
+ export { x as FetchReturn, au as TicketPanelManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
@@ -1,4 +1,4 @@
1
- export { aw as TournamentManager } from '../../index-iLzxxeFt.js';
1
+ export { aw as TournamentManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APITournament.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,5 +1,5 @@
1
1
  import '../../structures/Collection.js';
2
- export { a1 as GuildUserManager } from '../../index-iLzxxeFt.js';
2
+ export { a1 as GuildUserManager } from '../../index-MduLkAS9.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
5
5
  import '../../types/api/APIBaseChannel.js';
@@ -71,7 +71,7 @@ class GuildUserManager extends import_base.BaseManager {
71
71
  url,
72
72
  payload: { users: payloadUsers }
73
73
  });
74
- return this.set(response);
74
+ return this.setUpdated(response);
75
75
  }
76
76
  async deleteAll() {
77
77
  const url = this.base_url;
@@ -91,6 +91,26 @@ class GuildUserManager extends import_base.BaseManager {
91
91
  this.set(response);
92
92
  return this.cache;
93
93
  }
94
+ setUpdated(data) {
95
+ if (!data) return this.cache;
96
+ if (Array.isArray(data)) {
97
+ for (let _user of data) {
98
+ if (!_user.id) return;
99
+ const user = new import_GuildUser.GuildUser(_user, this);
100
+ this.cache.set(user.id, user);
101
+ this.rest.users.set(user.id, user);
102
+ this.rest.emit("userUpdate", user, this.guild);
103
+ }
104
+ return this.cache;
105
+ } else {
106
+ if (!data.id) return;
107
+ const user = new import_GuildUser.GuildUser(data, this);
108
+ this.cache.set(user.id, user);
109
+ this.rest.users.set(user.id, user);
110
+ this.rest.emit("userUpdate", user, this.guild);
111
+ return user;
112
+ }
113
+ }
94
114
  set(data) {
95
115
  if (!data) return this.cache;
96
116
  if (Array.isArray(data)) {
@@ -1,4 +1,4 @@
1
- export { az as VipMemberManager } from '../../index-iLzxxeFt.js';
1
+ export { az as VipMemberManager } from '../../index-MduLkAS9.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIVipMember.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,5 +1,5 @@
1
1
  import 'events';
2
- export { R as REST } from '../index-iLzxxeFt.js';
2
+ export { R as REST } from '../index-MduLkAS9.js';
3
3
  import '../structures/Collection.js';
4
4
  import '../types/api/APIAdvert.js';
5
5
  import '../types/api/APIAutomaticRole.js';
package/dist/rest/REST.js CHANGED
@@ -105,7 +105,6 @@ class REST extends import_events.default {
105
105
  import_Assertion.Assertion.assertString(this.clientKey);
106
106
  import_Assertion.Assertion.assertString(url);
107
107
  url = this.formatUrl(import_Routes.Routes.base + url);
108
- console.log(url);
109
108
  const headers = new import_undici.Headers();
110
109
  headers.append("authorization", this.authKey);
111
110
  headers.append("client_key", this.clientKey);
@@ -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-iLzxxeFt.js';
3
+ export { R as REST } from '../index-MduLkAS9.js';
4
4
  import '../structures/Collection.js';
5
5
  import '../types/api/APIAdvert.js';
6
6
  import '../types/api/APIAutomaticRole.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { j as AutomaticMessage } from '../../index-iLzxxeFt.js';
2
+ export { j as AutomaticMessage } from '../../index-MduLkAS9.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
5
5
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { y as GuildBet } from '../../index-iLzxxeFt.js';
1
+ export { y as GuildBet } from '../../index-MduLkAS9.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APIBetChannel.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { E as GuildBetUser } from '../../index-iLzxxeFt.js';
1
+ export { E as GuildBetUser } from '../../index-MduLkAS9.js';
2
2
  import '../../types/api/APIAdvert.js';
3
3
  import '../../types/api/APIAutomaticRole.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { G as Guild } from '../../index-iLzxxeFt.js';
1
+ export { G as Guild } from '../../index-MduLkAS9.js';
2
2
  import '../Collection.js';
3
3
  import '../../types/api/APIAutomaticRole.js';
4
4
  import '../../types/api/APIBuff.js';
@@ -1,4 +1,4 @@
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-iLzxxeFt.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-MduLkAS9.js';
2
2
  export { Collection } from './Collection.js';
3
3
  import '../types/api/APIAdvert.js';
4
4
  import '../types/api/APIAutomaticRole.js';
@@ -1,4 +1,4 @@
1
- export { a2 as LogEntry } from '../../index-iLzxxeFt.js';
1
+ export { a2 as LogEntry } from '../../index-MduLkAS9.js';
2
2
  import '../../types/api/APILogEntry.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
@@ -1,4 +1,4 @@
1
- export { L as GuildMatch } from '../../index-iLzxxeFt.js';
1
+ export { L as GuildMatch } from '../../index-MduLkAS9.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APIBaseChannel.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { P as GuildMediator } from '../../index-iLzxxeFt.js';
1
+ export { P as GuildMediator } from '../../index-MduLkAS9.js';
2
2
  import '../../types/api/APIGuildMediator.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
@@ -1,4 +1,4 @@
1
- export { aa as MinesGame } from '../../index-iLzxxeFt.js';
1
+ export { aa as MinesGame } from '../../index-MduLkAS9.js';
2
2
  import '../../types/api/APIMinesGame.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
@@ -1,4 +1,4 @@
1
- export { ah as Product } from '../../index-iLzxxeFt.js';
1
+ export { ah as Product } from '../../index-MduLkAS9.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APIProduct.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { ap as Shop } from '../../index-iLzxxeFt.js';
2
+ export { ap as Shop } from '../../index-MduLkAS9.js';
3
3
  import '../../types/api/APIGuildShop.js';
4
4
  import '../../types/api/APIAdvert.js';
5
5
  import '../../types/api/APIAutomaticRole.js';
@@ -1,4 +1,4 @@
1
- export { Y as GuildTicket } from '../../index-iLzxxeFt.js';
1
+ export { Y as GuildTicket } from '../../index-MduLkAS9.js';
2
2
  import '../../types/api/APIGuildTicket.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { at as TicketPanel } from '../../index-iLzxxeFt.js';
2
+ export { at as TicketPanel } from '../../index-MduLkAS9.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
5
5
  import '../../types/api/APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { av as Tournament } from '../../index-iLzxxeFt.js';
1
+ export { av as Tournament } from '../../index-MduLkAS9.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APITournament.js';
4
4
  import '../../types/api/APIAdvert.js';
@@ -1,4 +1,4 @@
1
- export { a0 as GuildUser } from '../../index-iLzxxeFt.js';
1
+ export { a0 as GuildUser } from '../../index-MduLkAS9.js';
2
2
  import '../../types/api/APIAdvert.js';
3
3
  import '../../types/api/APIAutomaticRole.js';
4
4
  import '../../types/api/APIBaseChannel.js';
@@ -71,6 +71,7 @@ const _GuildUser = class _GuildUser {
71
71
  __publicField(this, "coins");
72
72
  __publicField(this, "consecutive_wins");
73
73
  __publicField(this, "used_codes");
74
+ __publicField(this, "blacklist_info");
74
75
  /** Creation Date */
75
76
  __publicField(this, "createdAt");
76
77
  /** Updated Date */
@@ -103,6 +104,11 @@ const _GuildUser = class _GuildUser {
103
104
  this.createdAt = data?.createdAt ? new Date(data?.createdAt) : /* @__PURE__ */ new Date();
104
105
  this.updatedAt = data?.updatedAt ? new Date(data?.updatedAt) : /* @__PURE__ */ new Date();
105
106
  this.adverts = [];
107
+ this.blacklist_info = {
108
+ admin_id: data?.blacklist_info?.admin_id,
109
+ createdAt: new Date(data?.blacklist_info?.createdAt),
110
+ reason: data?.blacklist_info?.reason
111
+ };
106
112
  for (let _adv of data?.adverts || []) {
107
113
  this.adverts.push({
108
114
  _id: _adv._id,
@@ -152,6 +158,7 @@ const _GuildUser = class _GuildUser {
152
158
  this.blacklist = value;
153
159
  this.manager.cache.set(this.id, this);
154
160
  this.rest.users.set(this.id, this);
161
+ this.rest.emit("userUpdate", this, this.guild);
155
162
  return this;
156
163
  }
157
164
  async reset() {
@@ -413,6 +420,7 @@ const _GuildUser = class _GuildUser {
413
420
  }
414
421
  }
415
422
  if (data?.accessories) payload["accessories"] = data["accessories"];
423
+ if (data?.blacklist_info) payload["blacklist_info"] = data["blacklist_info"];
416
424
  const response = await this.rest.request({
417
425
  method: "patch",
418
426
  url,
@@ -461,7 +469,8 @@ const _GuildUser = class _GuildUser {
461
469
  spins: this.spins,
462
470
  updatedAt: this.updatedAt,
463
471
  used_codes: this.used_codes,
464
- wins: this.wins
472
+ wins: this.wins,
473
+ blacklist_info: this.blacklist_info
465
474
  };
466
475
  }
467
476
  };
@@ -488,6 +497,14 @@ update_fn = function(data) {
488
497
  });
489
498
  }
490
499
  }
500
+ if (key === "blacklist_info") {
501
+ this.blacklist_info = {
502
+ admin_id: data[key]?.admin_id,
503
+ createdAt: new Date(data[key]?.createdAt),
504
+ reason: data[key]?.reason
505
+ };
506
+ continue;
507
+ }
491
508
  }
492
509
  this.updatedAt = /* @__PURE__ */ new Date();
493
510
  this.createdAt = new Date(data.createdAt);
@@ -1,4 +1,4 @@
1
- export { ay as VipMember } from '../../index-iLzxxeFt.js';
1
+ export { ay as VipMember } from '../../index-MduLkAS9.js';
2
2
  import '../../types/api/APIVipMember.js';
3
3
  import '../../types/api/APIAdvert.js';
4
4
  import '../../types/api/APIAutomaticRole.js';
@@ -1,5 +1,5 @@
1
1
  import '../structures/Collection.js';
2
- export { ak as RequestOptions, al as RestEvents } from '../index-iLzxxeFt.js';
2
+ export { ak as RequestOptions, al as RestEvents } from '../index-MduLkAS9.js';
3
3
  import './api/APIAdvert.js';
4
4
  import './api/APIAutomaticRole.js';
5
5
  import './api/APIBaseChannel.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { A as APIAutomaticMessage, l as AutomaticMessagePayload } from '../../index-iLzxxeFt.js';
2
+ export { A as APIAutomaticMessage, l as AutomaticMessagePayload } from '../../index-MduLkAS9.js';
3
3
  import './APIAdvert.js';
4
4
  import './APIAutomaticRole.js';
5
5
  import './APIBaseChannel.js';
@@ -1,4 +1,4 @@
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-iLzxxeFt.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-MduLkAS9.js';
2
2
  import './APIAutomaticRole.js';
3
3
  import './APIBuff.js';
4
4
  import './APIGuildPermissions.js';
@@ -1,4 +1,4 @@
1
- export { b as APIGuildBet, r as BetChannelTypes, s as BetQueue } from '../../index-iLzxxeFt.js';
1
+ export { b as APIGuildBet, r as BetChannelTypes, s as BetQueue } from '../../index-MduLkAS9.js';
2
2
  import './APIBetChannel.js';
3
3
  import './APIMessage.js';
4
4
  import './APIPlayer.js';
@@ -1,4 +1,4 @@
1
- export { c as APIGuildBetUser } from '../../index-iLzxxeFt.js';
1
+ export { c as APIGuildBetUser } from '../../index-MduLkAS9.js';
2
2
  import './APIAdvert.js';
3
3
  import './APIAutomaticRole.js';
4
4
  import './APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { d as APIGuildGroupedChannel } from '../../index-iLzxxeFt.js';
1
+ export { d as APIGuildGroupedChannel } from '../../index-MduLkAS9.js';
2
2
  import './APIAdvert.js';
3
3
  import './APIAutomaticRole.js';
4
4
  import './APIBaseChannel.js';
@@ -1,4 +1,4 @@
1
- export { e as APIGuildMatch, M as GuildMatchChannelsType, O as GuildMatchMessagesType, a8 as MatchSelection } from '../../index-iLzxxeFt.js';
1
+ export { e as APIGuildMatch, M as GuildMatchChannelsType, O as GuildMatchMessagesType, a8 as MatchSelection } from '../../index-MduLkAS9.js';
2
2
  import './APIPlayer.js';
3
3
  import './APIBaseChannel.js';
4
4
  import './APIMessage.js';
@@ -1,4 +1,4 @@
1
- export { f as APIGuildUser, ai as Profile } from '../../index-iLzxxeFt.js';
1
+ export { f as APIGuildUser, ai as Profile } from '../../index-MduLkAS9.js';
2
2
  import './APIAdvert.js';
3
3
  import './APIAutomaticRole.js';
4
4
  import './APIBaseChannel.js';
@@ -1,5 +1,5 @@
1
1
  import 'discord-api-types/v10';
2
- export { h as APITicketPanel } from '../../index-iLzxxeFt.js';
2
+ export { h as APITicketPanel } from '../../index-MduLkAS9.js';
3
3
  import './APIAdvert.js';
4
4
  import './APIAutomaticRole.js';
5
5
  import './APIBaseChannel.js';
@@ -1,5 +1,5 @@
1
1
  export { APIAdvert } from './APIAdvert.js';
2
- export { A as APIAutomaticMessage, a as APIGuild, b as APIGuildBet, c as APIGuildBetUser, d as APIGuildGroupedChannel, e as APIGuildMatch, f as APIGuildUser, g as APITicketCategory, h as APITicketPanel, i as Accessory, l as 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-iLzxxeFt.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-MduLkAS9.js';
3
3
  export { APIAutomaticRole, AutomaticRolesTypes } from './APIAutomaticRole.js';
4
4
  export { APIBaseChannel } from './APIBaseChannel.js';
5
5
  export { APIBetChannel } from './APIBetChannel.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 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-iLzxxeFt.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-MduLkAS9.js';
2
2
  export { APIAdvert } from './api/APIAdvert.js';
3
3
  export { APIAutomaticRole, AutomaticRolesTypes } from './api/APIAutomaticRole.js';
4
4
  export { APIBaseChannel } from './api/APIBaseChannel.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duque.edits/sdk",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",