@duque.edits/sdk 1.6.3 → 1.6.7

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 (80) hide show
  1. package/dist/{index-BwmNIP2p.d.ts → index-26CPLcdp.d.ts} +303 -275
  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/bet/GuildBetManager.js +4 -0
  7. package/dist/managers/betuser/GuildBetUserManager.d.ts +2 -1
  8. package/dist/managers/betuser/GuildBetUserManager.js +4 -0
  9. package/dist/managers/buffer/BufferManager.d.ts +2 -1
  10. package/dist/managers/guild/GuildManager.d.ts +2 -1
  11. package/dist/managers/guild/GuildManager.js +4 -0
  12. package/dist/managers/index.d.ts +2 -1
  13. package/dist/managers/logs/LogManager.d.ts +2 -1
  14. package/dist/managers/logs/LogManager.js +4 -0
  15. package/dist/managers/match/GuildMatchManager.d.ts +2 -1
  16. package/dist/managers/match/GuildMatchManager.js +4 -0
  17. package/dist/managers/mediator/GuildMediatorManager.d.ts +2 -1
  18. package/dist/managers/mediator/GuildMediatorManager.js +4 -0
  19. package/dist/managers/message/MessagesManager.d.ts +2 -1
  20. package/dist/managers/message/MessagesManager.js +21 -6
  21. package/dist/managers/minesgame/MinesGameManager.d.ts +2 -1
  22. package/dist/managers/minesgame/MinesGameManager.js +4 -0
  23. package/dist/managers/permission/GuildPermissionManager.d.ts +2 -1
  24. package/dist/managers/player/PlayerManager.d.ts +2 -1
  25. package/dist/managers/product/ProductManager.d.ts +2 -1
  26. package/dist/managers/product/ProductManager.js +2 -1
  27. package/dist/managers/shop/ShopManager.d.ts +2 -1
  28. package/dist/managers/shop/ShopManager.js +2 -1
  29. package/dist/managers/ticket/TicketManager.d.ts +2 -1
  30. package/dist/managers/ticket/TicketManager.js +4 -0
  31. package/dist/managers/ticketpanel/TicketPanelManager.d.ts +2 -1
  32. package/dist/managers/ticketpanel/TicketPanelManager.js +2 -1
  33. package/dist/managers/tournament/TournamentManager.d.ts +2 -1
  34. package/dist/managers/tournament/TournamentManager.js +4 -0
  35. package/dist/managers/user/GuildUserManager.d.ts +2 -1
  36. package/dist/managers/user/GuildUserManager.js +4 -1
  37. package/dist/managers/vipmember/VipMemberManager.d.ts +2 -1
  38. package/dist/managers/vipmember/VipMemberManager.js +4 -0
  39. package/dist/rest/REST.d.ts +2 -1
  40. package/dist/rest/index.d.ts +2 -1
  41. package/dist/structures/automaticmessage/AutomaticMessage.d.ts +2 -1
  42. package/dist/structures/bet/GuildBet.d.ts +2 -1
  43. package/dist/structures/bet/GuildBet.js +19 -11
  44. package/dist/structures/betuser/GuildBetUser.d.ts +2 -1
  45. package/dist/structures/betuser/GuildBetUser.js +17 -9
  46. package/dist/structures/guild/Guild.d.ts +2 -1
  47. package/dist/structures/guild/Guild.js +49 -0
  48. package/dist/structures/index.d.ts +2 -1
  49. package/dist/structures/logentry/LogEntry.d.ts +2 -1
  50. package/dist/structures/match/GuildMatch.d.ts +2 -1
  51. package/dist/structures/match/GuildMatch.js +30 -10
  52. package/dist/structures/mediator/GuildMediator.d.ts +2 -1
  53. package/dist/structures/mediator/GuildMediator.js +11 -9
  54. package/dist/structures/minesgame/MinesGame.d.ts +2 -1
  55. package/dist/structures/minesgame/MinesGame.js +15 -0
  56. package/dist/structures/product/Product.d.ts +2 -1
  57. package/dist/structures/shop/Shop.d.ts +2 -1
  58. package/dist/structures/ticket/Ticket.d.ts +2 -1
  59. package/dist/structures/ticket/Ticket.js +16 -0
  60. package/dist/structures/ticketpanel/TicketPanel.d.ts +2 -1
  61. package/dist/structures/tournament/Tournament.d.ts +2 -1
  62. package/dist/structures/user/GuildUser.d.ts +2 -1
  63. package/dist/structures/user/GuildUser.js +5 -5
  64. package/dist/structures/vipmember/VipMember.d.ts +2 -1
  65. package/dist/structures/vipmember/VipMember.js +12 -7
  66. package/dist/types/RestTypes.d.ts +2 -1
  67. package/dist/types/api/APIAutomaticMessage.d.ts +2 -1
  68. package/dist/types/api/APIAutomaticRole.d.ts +18 -0
  69. package/dist/types/api/APIAutomaticRole.js +36 -0
  70. package/dist/types/api/APIGuild.d.ts +2 -1
  71. package/dist/types/api/APIGuildBet.d.ts +2 -1
  72. package/dist/types/api/APIGuildBetUser.d.ts +2 -1
  73. package/dist/types/api/APIGuildGroupedChannel.d.ts +2 -1
  74. package/dist/types/api/APIGuildMatch.d.ts +2 -1
  75. package/dist/types/api/APIGuildUser.d.ts +2 -1
  76. package/dist/types/api/APITicketPanel.d.ts +2 -1
  77. package/dist/types/api/index.d.ts +2 -1
  78. package/dist/types/api/index.js +2 -0
  79. package/dist/types/index.d.ts +2 -1
  80. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
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';
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-26CPLcdp.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
+ export { APIAutomaticRole, AutomaticRolesTypes } from './types/api/APIAutomaticRole.js';
6
7
  export { APIBaseChannel } from './types/api/APIBaseChannel.js';
7
8
  export { APIBetChannel } from './types/api/APIBetChannel.js';
8
9
  export { APIBuff } from './types/api/APIBuff.js';
@@ -1,6 +1,7 @@
1
- export { k as AutomaticMessageManager } from '../../index-BwmNIP2p.js';
1
+ export { k as AutomaticMessageManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
+ import '../../types/api/APIAutomaticRole.js';
4
5
  import '../../types/api/APIBaseChannel.js';
5
6
  import '../../types/api/APIBetChannel.js';
6
7
  import '../../types/api/APIBuff.js';
@@ -1,6 +1,7 @@
1
- export { o as BaseManager } from '../index-BwmNIP2p.js';
1
+ export { o as BaseManager } from '../index-26CPLcdp.js';
2
2
  import '../structures/Collection.js';
3
3
  import '../types/api/APIAdvert.js';
4
+ import '../types/api/APIAutomaticRole.js';
4
5
  import '../types/api/APIBaseChannel.js';
5
6
  import '../types/api/APIBetChannel.js';
6
7
  import '../types/api/APIBuff.js';
@@ -1,6 +1,7 @@
1
- export { F as FetchOptions, z as GuildBetManager } from '../../index-BwmNIP2p.js';
1
+ export { F as FetchOptions, z as GuildBetManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
+ import '../../types/api/APIAutomaticRole.js';
4
5
  import '../../types/api/APIBaseChannel.js';
5
6
  import '../../types/api/APIBetChannel.js';
6
7
  import '../../types/api/APIBuff.js';
@@ -78,6 +78,10 @@ class GuildBetManager extends import_base.BaseManager {
78
78
  return bet;
79
79
  }
80
80
  }
81
+ toJSON() {
82
+ const m = [...this.cache.values()];
83
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
84
+ }
81
85
  }
82
86
  // Annotate the CommonJS export names for ESM import in node:
83
87
  0 && (module.exports = {
@@ -1,6 +1,7 @@
1
- export { H as GuildBetUserManager } from '../../index-BwmNIP2p.js';
1
+ export { H as GuildBetUserManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
+ import '../../types/api/APIAutomaticRole.js';
4
5
  import '../../types/api/APIBaseChannel.js';
5
6
  import '../../types/api/APIBetChannel.js';
6
7
  import '../../types/api/APIBuff.js';
@@ -97,6 +97,10 @@ class GuildBetUserManager extends import_base.BaseManager {
97
97
  return user;
98
98
  }
99
99
  }
100
+ toJSON() {
101
+ const m = [...this.cache.values()];
102
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
103
+ }
100
104
  }
101
105
  // Annotate the CommonJS export names for ESM import in node:
102
106
  0 && (module.exports = {
@@ -1,7 +1,8 @@
1
1
  import '../../structures/Collection.js';
2
- export { t as BufferManager, u as BufferMatch, v as BufferTicket } from '../../index-BwmNIP2p.js';
2
+ export { t as BufferManager, u as BufferMatch, v as BufferTicket } from '../../index-26CPLcdp.js';
3
3
  import '../../types/api/APIGuildTicket.js';
4
4
  import '../../types/api/APIAdvert.js';
5
+ import '../../types/api/APIAutomaticRole.js';
5
6
  import '../../types/api/APIBaseChannel.js';
6
7
  import '../../types/api/APIBetChannel.js';
7
8
  import '../../types/api/APIBuff.js';
@@ -1,6 +1,7 @@
1
- export { K as GuildManager } from '../../index-BwmNIP2p.js';
1
+ export { K as GuildManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
+ import '../../types/api/APIAutomaticRole.js';
4
5
  import '../../types/api/APIBaseChannel.js';
5
6
  import '../../types/api/APIBetChannel.js';
6
7
  import '../../types/api/APIBuff.js';
@@ -118,6 +118,10 @@ class GuildManager {
118
118
  return guild;
119
119
  }
120
120
  }
121
+ toJSON() {
122
+ const m = [...this.cache.values()];
123
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
124
+ }
121
125
  }
122
126
  // Annotate the CommonJS export names for ESM import in node:
123
127
  0 && (module.exports = {
@@ -1,5 +1,6 @@
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';
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-26CPLcdp.js';
2
2
  import '../types/api/APIAdvert.js';
3
+ import '../types/api/APIAutomaticRole.js';
3
4
  import '../types/api/APIBaseChannel.js';
4
5
  import '../types/api/APIBetChannel.js';
5
6
  import '../types/api/APIBuff.js';
@@ -1,7 +1,8 @@
1
- export { a3 as LogManager } from '../../index-BwmNIP2p.js';
1
+ export { a3 as LogManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APILogEntry.js';
4
4
  import '../../types/api/APIAdvert.js';
5
+ import '../../types/api/APIAutomaticRole.js';
5
6
  import '../../types/api/APIBaseChannel.js';
6
7
  import '../../types/api/APIBetChannel.js';
7
8
  import '../../types/api/APIBuff.js';
@@ -81,6 +81,10 @@ class LogManager extends import_base.BaseManager {
81
81
  return logEntry;
82
82
  }
83
83
  }
84
+ toJSON() {
85
+ const m = [...this.cache.values()];
86
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
87
+ }
84
88
  }
85
89
  // Annotate the CommonJS export names for ESM import in node:
86
90
  0 && (module.exports = {
@@ -1,6 +1,7 @@
1
- export { N as GuildMatchManager } from '../../index-BwmNIP2p.js';
1
+ export { N as GuildMatchManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
+ import '../../types/api/APIAutomaticRole.js';
4
5
  import '../../types/api/APIBaseChannel.js';
5
6
  import '../../types/api/APIBetChannel.js';
6
7
  import '../../types/api/APIBuff.js';
@@ -106,6 +106,10 @@ class GuildMatchManager extends import_base.BaseManager {
106
106
  const response = await this.rest.request({ url, method: "DELETE" });
107
107
  return this.set(response);
108
108
  }
109
+ toJSON() {
110
+ const m = [...this.cache.values()];
111
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
112
+ }
109
113
  }
110
114
  // Annotate the CommonJS export names for ESM import in node:
111
115
  0 && (module.exports = {
@@ -1,7 +1,8 @@
1
- export { Q as GuildMediatorManager } from '../../index-BwmNIP2p.js';
1
+ export { Q as GuildMediatorManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildMediator.js';
4
4
  import '../../types/api/APIAdvert.js';
5
+ import '../../types/api/APIAutomaticRole.js';
5
6
  import '../../types/api/APIBaseChannel.js';
6
7
  import '../../types/api/APIBetChannel.js';
7
8
  import '../../types/api/APIBuff.js';
@@ -105,6 +105,10 @@ class GuildMediatorManager extends import_base.BaseManager {
105
105
  return mediator;
106
106
  }
107
107
  }
108
+ toJSON() {
109
+ const m = [...this.cache.values()];
110
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
111
+ }
108
112
  }
109
113
  // Annotate the CommonJS export names for ESM import in node:
110
114
  0 && (module.exports = {
@@ -1,7 +1,8 @@
1
- export { a9 as MessagesManager } from '../../index-BwmNIP2p.js';
1
+ export { a9 as MessagesManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIMessage.js';
4
4
  import '../../types/api/APIAdvert.js';
5
+ import '../../types/api/APIAutomaticRole.js';
5
6
  import '../../types/api/APIBaseChannel.js';
6
7
  import '../../types/api/APIBetChannel.js';
7
8
  import '../../types/api/APIBuff.js';
@@ -27,12 +27,14 @@ var import_Collection = require("../../structures/Collection");
27
27
  class MessagesManager {
28
28
  constructor(structure, base_url) {
29
29
  __publicField(this, "cache");
30
+ __publicField(this, "_messages");
30
31
  __publicField(this, "base_url");
31
32
  __publicField(this, "rest");
32
33
  __publicField(this, "guild");
33
34
  this.rest = structure.rest;
34
35
  this.guild = structure.guild;
35
36
  this.cache = new import_Collection.Collection("messages");
37
+ this._messages = [];
36
38
  this.base_url = base_url;
37
39
  }
38
40
  async fetch() {
@@ -45,15 +47,24 @@ class MessagesManager {
45
47
  return response;
46
48
  }
47
49
  async create(data) {
48
- const messages = [...this.cache.toArray()];
50
+ let messages = [...this.cache.toArray()];
49
51
  if (Array.isArray(data)) messages.push(...data);
50
52
  else messages.push(data);
51
- const response = await this.rest.request({
52
- method: "PATCH",
53
- url: this.base_url,
54
- payload: { set: messages }
53
+ messages = [.../* @__PURE__ */ new Set([...messages, this._messages])];
54
+ console.log({
55
+ messages,
56
+ s: messages.length
55
57
  });
56
- return this.set(response.messages);
58
+ if (messages.length >= 10) {
59
+ const response = await this.rest.request({
60
+ method: "PATCH",
61
+ url: this.base_url,
62
+ payload: { set: messages }
63
+ });
64
+ return this.set(response.messages);
65
+ } else {
66
+ for (let msg of messages) this._messages.push(msg);
67
+ }
57
68
  }
58
69
  set(data) {
59
70
  if (!data) return this.cache;
@@ -68,6 +79,10 @@ class MessagesManager {
68
79
  }
69
80
  return this.cache;
70
81
  }
82
+ toJSON() {
83
+ const m = [...this.cache.values()];
84
+ return m.filter((m2) => m2._id !== void 0);
85
+ }
71
86
  }
72
87
  // Annotate the CommonJS export names for ESM import in node:
73
88
  0 && (module.exports = {
@@ -1,7 +1,8 @@
1
- export { ab as MinesGameManager } from '../../index-BwmNIP2p.js';
1
+ export { ab as MinesGameManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIMinesGame.js';
4
4
  import '../../types/api/APIAdvert.js';
5
+ import '../../types/api/APIAutomaticRole.js';
5
6
  import '../../types/api/APIBaseChannel.js';
6
7
  import '../../types/api/APIBetChannel.js';
7
8
  import '../../types/api/APIBuff.js';
@@ -82,6 +82,10 @@ class MinesGameManager {
82
82
  return game;
83
83
  }
84
84
  }
85
+ toJSON() {
86
+ const m = [...this.cache.values()];
87
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
88
+ }
85
89
  }
86
90
  // Annotate the CommonJS export names for ESM import in node:
87
91
  0 && (module.exports = {
@@ -1,6 +1,7 @@
1
- export { T as GuildPermissionManager } from '../../index-BwmNIP2p.js';
1
+ export { T as GuildPermissionManager } from '../../index-26CPLcdp.js';
2
2
  import '../../types/api/APIGuildPermissions.js';
3
3
  import '../../types/api/APIAdvert.js';
4
+ import '../../types/api/APIAutomaticRole.js';
4
5
  import '../../types/api/APIBaseChannel.js';
5
6
  import '../../types/api/APIBetChannel.js';
6
7
  import '../../types/api/APIBuff.js';
@@ -1,7 +1,8 @@
1
1
  import '../../types/api/APIPlayer.js';
2
- export { af as PlayerManager, ag as PlayerOption, as as Structure } from '../../index-BwmNIP2p.js';
2
+ export { af as PlayerManager, ag as PlayerOption, as as Structure } from '../../index-26CPLcdp.js';
3
3
  import '../../structures/Collection.js';
4
4
  import '../../types/api/APIAdvert.js';
5
+ import '../../types/api/APIAutomaticRole.js';
5
6
  import '../../types/api/APIBaseChannel.js';
6
7
  import '../../types/api/APIBetChannel.js';
7
8
  import '../../types/api/APIBuff.js';
@@ -1,7 +1,8 @@
1
- export { aA as ProductManager } from '../../index-BwmNIP2p.js';
1
+ export { aA as ProductManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIProduct.js';
4
4
  import '../../types/api/APIAdvert.js';
5
+ import '../../types/api/APIAutomaticRole.js';
5
6
  import '../../types/api/APIBaseChannel.js';
6
7
  import '../../types/api/APIBetChannel.js';
7
8
  import '../../types/api/APIBuff.js';
@@ -91,7 +91,8 @@ class ProductManager extends import_base.BaseManager {
91
91
  }
92
92
  }
93
93
  toJSON() {
94
- return this.cache.map((p) => p.toJSON());
94
+ const m = [...this.cache.values()];
95
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
95
96
  }
96
97
  }
97
98
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,7 +1,8 @@
1
- export { aq as ShopManager } from '../../index-BwmNIP2p.js';
1
+ export { aq as ShopManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildShop.js';
4
4
  import '../../types/api/APIAdvert.js';
5
+ import '../../types/api/APIAutomaticRole.js';
5
6
  import '../../types/api/APIBaseChannel.js';
6
7
  import '../../types/api/APIBetChannel.js';
7
8
  import '../../types/api/APIBuff.js';
@@ -89,7 +89,8 @@ class ShopManager extends import_base.BaseManager {
89
89
  }
90
90
  }
91
91
  toJSON() {
92
- return this.cache.toArray();
92
+ const m = [...this.cache.values()];
93
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
93
94
  }
94
95
  }
95
96
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,7 +1,8 @@
1
- export { _ as GuildTicketManager } from '../../index-BwmNIP2p.js';
1
+ export { _ as GuildTicketManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIGuildTicket.js';
4
4
  import '../../types/api/APIAdvert.js';
5
+ import '../../types/api/APIAutomaticRole.js';
5
6
  import '../../types/api/APIBaseChannel.js';
6
7
  import '../../types/api/APIBetChannel.js';
7
8
  import '../../types/api/APIBuff.js';
@@ -145,6 +145,10 @@ class GuildTicketManager {
145
145
  return ticket;
146
146
  }
147
147
  }
148
+ toJSON() {
149
+ const m = [...this.cache.values()];
150
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
151
+ }
148
152
  }
149
153
  // Annotate the CommonJS export names for ESM import in node:
150
154
  0 && (module.exports = {
@@ -1,6 +1,7 @@
1
- export { x as FetchReturn, au as TicketPanelManager } from '../../index-BwmNIP2p.js';
1
+ export { x as FetchReturn, au as TicketPanelManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIAdvert.js';
4
+ import '../../types/api/APIAutomaticRole.js';
4
5
  import '../../types/api/APIBaseChannel.js';
5
6
  import '../../types/api/APIBetChannel.js';
6
7
  import '../../types/api/APIBuff.js';
@@ -72,7 +72,8 @@ class TicketPanelManager extends import_base.BaseManager {
72
72
  }
73
73
  }
74
74
  toJSON() {
75
- return this.cache.map((a) => a.toJSON());
75
+ const m = [...this.cache.values()];
76
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
76
77
  }
77
78
  }
78
79
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,7 +1,8 @@
1
- export { aw as TournamentManager } from '../../index-BwmNIP2p.js';
1
+ export { aw as TournamentManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APITournament.js';
4
4
  import '../../types/api/APIAdvert.js';
5
+ import '../../types/api/APIAutomaticRole.js';
5
6
  import '../../types/api/APIBaseChannel.js';
6
7
  import '../../types/api/APIBetChannel.js';
7
8
  import '../../types/api/APIBuff.js';
@@ -92,6 +92,10 @@ class TournamentManager extends import_base.BaseManager {
92
92
  const response = await this.rest.request({ url, method: "POST", payload: data });
93
93
  return this._add(response);
94
94
  }
95
+ toJSON() {
96
+ const m = [...this.cache.values()];
97
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
98
+ }
95
99
  }
96
100
  // Annotate the CommonJS export names for ESM import in node:
97
101
  0 && (module.exports = {
@@ -1,6 +1,7 @@
1
1
  import '../../structures/Collection.js';
2
- export { a1 as GuildUserManager } from '../../index-BwmNIP2p.js';
2
+ export { a1 as GuildUserManager } from '../../index-26CPLcdp.js';
3
3
  import '../../types/api/APIAdvert.js';
4
+ import '../../types/api/APIAutomaticRole.js';
4
5
  import '../../types/api/APIBaseChannel.js';
5
6
  import '../../types/api/APIBetChannel.js';
6
7
  import '../../types/api/APIBuff.js';
@@ -63,7 +63,6 @@ class GuildUserManager extends import_base.BaseManager {
63
63
  for (let user of users) {
64
64
  if (!user.id) continue;
65
65
  if (user instanceof import_GuildUser.GuildUser) user = user.toJSON();
66
- const _user = this.cache.get(user.id);
67
66
  payloadUsers.push({ ...user });
68
67
  }
69
68
  const url = this.base_url;
@@ -110,6 +109,10 @@ class GuildUserManager extends import_base.BaseManager {
110
109
  return user;
111
110
  }
112
111
  }
112
+ toJSON() {
113
+ const m = [...this.cache.values()];
114
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
115
+ }
113
116
  }
114
117
  // Annotate the CommonJS export names for ESM import in node:
115
118
  0 && (module.exports = {
@@ -1,7 +1,8 @@
1
- export { az as VipMemberManager } from '../../index-BwmNIP2p.js';
1
+ export { az as VipMemberManager } from '../../index-26CPLcdp.js';
2
2
  import '../../structures/Collection.js';
3
3
  import '../../types/api/APIVipMember.js';
4
4
  import '../../types/api/APIAdvert.js';
5
+ import '../../types/api/APIAutomaticRole.js';
5
6
  import '../../types/api/APIBaseChannel.js';
6
7
  import '../../types/api/APIBetChannel.js';
7
8
  import '../../types/api/APIBuff.js';
@@ -135,6 +135,10 @@ class VipMemberManager extends import_base.BaseManager {
135
135
  this.cache.clear();
136
136
  return value;
137
137
  }
138
+ toJSON() {
139
+ const m = [...this.cache.values()];
140
+ return m.filter((m2) => m2.toJSON !== void 0).map((m2) => m2.toJSON());
141
+ }
138
142
  }
139
143
  // Annotate the CommonJS export names for ESM import in node:
140
144
  0 && (module.exports = {
@@ -1,7 +1,8 @@
1
1
  import 'events';
2
- export { R as REST } from '../index-BwmNIP2p.js';
2
+ export { R as REST } from '../index-26CPLcdp.js';
3
3
  import '../structures/Collection.js';
4
4
  import '../types/api/APIAdvert.js';
5
+ import '../types/api/APIAutomaticRole.js';
5
6
  import '../types/api/APIBaseChannel.js';
6
7
  import '../types/api/APIBetChannel.js';
7
8
  import '../types/api/APIBuff.js';
@@ -1,8 +1,9 @@
1
1
  export { APIEndpoint, APIEndpoints } from './APIEndpoints.js';
2
2
  export { Routes } from './Routes.js';
3
- export { R as REST } from '../index-BwmNIP2p.js';
3
+ export { R as REST } from '../index-26CPLcdp.js';
4
4
  import '../structures/Collection.js';
5
5
  import '../types/api/APIAdvert.js';
6
+ import '../types/api/APIAutomaticRole.js';
6
7
  import '../types/api/APIBaseChannel.js';
7
8
  import '../types/api/APIBetChannel.js';
8
9
  import '../types/api/APIBuff.js';
@@ -1,6 +1,7 @@
1
1
  import 'discord-api-types/v10';
2
- export { j as AutomaticMessage } from '../../index-BwmNIP2p.js';
2
+ export { j as AutomaticMessage } from '../../index-26CPLcdp.js';
3
3
  import '../../types/api/APIAdvert.js';
4
+ import '../../types/api/APIAutomaticRole.js';
4
5
  import '../../types/api/APIBaseChannel.js';
5
6
  import '../../types/api/APIBetChannel.js';
6
7
  import '../../types/api/APIBuff.js';
@@ -1,7 +1,8 @@
1
- export { y as GuildBet } from '../../index-BwmNIP2p.js';
1
+ export { y as GuildBet } from '../../index-26CPLcdp.js';
2
2
  import '../../types/api/APIPlayer.js';
3
3
  import '../../types/api/APIBetChannel.js';
4
4
  import '../../types/api/APIAdvert.js';
5
+ import '../../types/api/APIAutomaticRole.js';
5
6
  import '../../types/api/APIBaseChannel.js';
6
7
  import '../../types/api/APIBuff.js';
7
8
  import '../../types/api/APICode.js';
@@ -164,18 +164,26 @@ class GuildBet {
164
164
  return response;
165
165
  }
166
166
  toJSON() {
167
- let json = {};
168
- for (const [key, value] of Object.entries(this)) {
169
- const exclude = ["rest", "guild", "manager"];
170
- if (exclude.includes(key)) continue;
171
- if (typeof value !== "function") {
172
- json[key] = value;
173
- }
174
- }
175
167
  return {
176
- ...json,
177
- messages: this?.messages instanceof import_managers.MessagesManager ? this.messages?.cache?.toArray() : [],
178
- players: this.players.toArray()
168
+ _id: this._id,
169
+ channels: this.channels,
170
+ confirmed: this.confirmed,
171
+ createdAt: this.createdAt,
172
+ creatorId: this.creatorId,
173
+ guild_id: this.guild_id,
174
+ losers: this.losers,
175
+ maximumSize: this.maximumSize,
176
+ mediatorId: this.mediatorId,
177
+ messages: this.messages.cache.toArray(),
178
+ mode: this.mode,
179
+ players: this.players.toArray(),
180
+ price: this.price,
181
+ queues: this.queues,
182
+ status: this.status,
183
+ teams: this.teams,
184
+ type: this.type,
185
+ updatedAt: this.updatedAt,
186
+ winners: this.winners
179
187
  };
180
188
  }
181
189
  }
@@ -1,5 +1,6 @@
1
- export { E as GuildBetUser } from '../../index-BwmNIP2p.js';
1
+ export { E as GuildBetUser } from '../../index-26CPLcdp.js';
2
2
  import '../../types/api/APIAdvert.js';
3
+ import '../../types/api/APIAutomaticRole.js';
3
4
  import '../../types/api/APIBaseChannel.js';
4
5
  import '../../types/api/APIBetChannel.js';
5
6
  import '../../types/api/APIBuff.js';
@@ -220,15 +220,23 @@ const _GuildBetUser = class _GuildBetUser {
220
220
  return response;
221
221
  }
222
222
  toJSON() {
223
- let json = {};
224
- for (const [key, value] of Object.entries(this)) {
225
- const exclude = ["rest", "guilds", "guild", "manager"];
226
- if (exclude.includes(key)) continue;
227
- if (typeof value !== "function") {
228
- json[key] = value;
229
- }
230
- }
231
- return json;
223
+ return {
224
+ blacklist: this.blacklist,
225
+ coins: this.coins,
226
+ consecutive_wins: this.consecutive_wins,
227
+ createdAt: this.createdAt,
228
+ credit: this.credit,
229
+ daily: this.daily,
230
+ games: this.games,
231
+ guild_id: this.guild_id,
232
+ id: this.id,
233
+ losses: this.losses,
234
+ profile: this.profile,
235
+ spins: this.spins,
236
+ updatedAt: this.updatedAt,
237
+ used_codes: this.used_codes,
238
+ wins: this.wins
239
+ };
232
240
  }
233
241
  };
234
242
  _GuildBetUser_instances = new WeakSet();
@@ -1,5 +1,6 @@
1
- export { G as Guild } from '../../index-BwmNIP2p.js';
1
+ export { G as Guild } from '../../index-26CPLcdp.js';
2
2
  import '../Collection.js';
3
+ import '../../types/api/APIAutomaticRole.js';
3
4
  import '../../types/api/APIBuff.js';
4
5
  import '../../types/api/APITimer.js';
5
6
  import '../../types/api/APIGuildPermissions.js';