oceanic.js 1.10.1-dev.97cef9c → 1.10.1-dev.9b37972

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 (204) hide show
  1. package/dist/package.json +5 -5
  2. package/esm.mjs +2 -0
  3. package/package.json +5 -5
  4. package/dist/lib/Client.d.ts +0 -91
  5. package/dist/lib/Client.js +0 -254
  6. package/dist/lib/Constants.d.ts +0 -1121
  7. package/dist/lib/Constants.js +0 -1401
  8. package/dist/lib/gateway/Shard.d.ts +0 -77
  9. package/dist/lib/gateway/Shard.js +0 -1582
  10. package/dist/lib/gateway/ShardManager.d.ts +0 -26
  11. package/dist/lib/gateway/ShardManager.js +0 -304
  12. package/dist/lib/index.d.ts +0 -83
  13. package/dist/lib/index.js +0 -166
  14. package/dist/lib/rest/Bucket.d.ts +0 -33
  15. package/dist/lib/rest/Bucket.js +0 -78
  16. package/dist/lib/rest/DiscordHTTPError.d.ts +0 -16
  17. package/dist/lib/rest/DiscordHTTPError.js +0 -65
  18. package/dist/lib/rest/DiscordRESTError.d.ts +0 -19
  19. package/dist/lib/rest/DiscordRESTError.js +0 -89
  20. package/dist/lib/rest/OAuthHelper.d.ts +0 -60
  21. package/dist/lib/rest/OAuthHelper.js +0 -180
  22. package/dist/lib/rest/RESTManager.d.ts +0 -42
  23. package/dist/lib/rest/RESTManager.js +0 -82
  24. package/dist/lib/rest/RequestHandler.d.ts +0 -28
  25. package/dist/lib/rest/RequestHandler.js +0 -313
  26. package/dist/lib/rest/SequentialBucket.d.ts +0 -25
  27. package/dist/lib/rest/SequentialBucket.js +0 -76
  28. package/dist/lib/routes/Applications.d.ts +0 -171
  29. package/dist/lib/routes/Applications.js +0 -447
  30. package/dist/lib/routes/Channels.d.ts +0 -391
  31. package/dist/lib/routes/Channels.js +0 -1107
  32. package/dist/lib/routes/Guilds.d.ts +0 -606
  33. package/dist/lib/routes/Guilds.js +0 -1669
  34. package/dist/lib/routes/Interactions.d.ts +0 -74
  35. package/dist/lib/routes/Interactions.js +0 -141
  36. package/dist/lib/routes/Miscellaneous.d.ts +0 -25
  37. package/dist/lib/routes/Miscellaneous.js +0 -54
  38. package/dist/lib/routes/OAuth.d.ts +0 -105
  39. package/dist/lib/routes/OAuth.js +0 -309
  40. package/dist/lib/routes/Users.d.ts +0 -32
  41. package/dist/lib/routes/Users.js +0 -59
  42. package/dist/lib/routes/Webhooks.d.ts +0 -128
  43. package/dist/lib/routes/Webhooks.js +0 -264
  44. package/dist/lib/structures/AnnouncementChannel.d.ts +0 -36
  45. package/dist/lib/structures/AnnouncementChannel.js +0 -47
  46. package/dist/lib/structures/AnnouncementThreadChannel.d.ts +0 -18
  47. package/dist/lib/structures/AnnouncementThreadChannel.js +0 -27
  48. package/dist/lib/structures/Application.d.ts +0 -68
  49. package/dist/lib/structures/Application.js +0 -178
  50. package/dist/lib/structures/ApplicationCommand.d.ts +0 -74
  51. package/dist/lib/structures/ApplicationCommand.js +0 -141
  52. package/dist/lib/structures/Attachment.d.ts +0 -34
  53. package/dist/lib/structures/Attachment.js +0 -64
  54. package/dist/lib/structures/AuditLogEntry.d.ts +0 -25
  55. package/dist/lib/structures/AuditLogEntry.js +0 -53
  56. package/dist/lib/structures/AutoModerationRule.d.ts +0 -49
  57. package/dist/lib/structures/AutoModerationRule.js +0 -139
  58. package/dist/lib/structures/AutocompleteInteraction.d.ts +0 -62
  59. package/dist/lib/structures/AutocompleteInteraction.js +0 -115
  60. package/dist/lib/structures/Base.d.ts +0 -20
  61. package/dist/lib/structures/Base.js +0 -58
  62. package/dist/lib/structures/BaseEntitlement.d.ts +0 -19
  63. package/dist/lib/structures/BaseEntitlement.js +0 -44
  64. package/dist/lib/structures/CategoryChannel.d.ts +0 -41
  65. package/dist/lib/structures/CategoryChannel.js +0 -105
  66. package/dist/lib/structures/Channel.d.ts +0 -20
  67. package/dist/lib/structures/Channel.js +0 -91
  68. package/dist/lib/structures/ClientApplication.d.ts +0 -153
  69. package/dist/lib/structures/ClientApplication.js +0 -220
  70. package/dist/lib/structures/CommandInteraction.d.ts +0 -127
  71. package/dist/lib/structures/CommandInteraction.js +0 -297
  72. package/dist/lib/structures/ComponentInteraction.d.ts +0 -137
  73. package/dist/lib/structures/ComponentInteraction.js +0 -311
  74. package/dist/lib/structures/Entitlement.d.ts +0 -12
  75. package/dist/lib/structures/Entitlement.js +0 -26
  76. package/dist/lib/structures/ExtendedUser.d.ts +0 -26
  77. package/dist/lib/structures/ExtendedUser.js +0 -57
  78. package/dist/lib/structures/ForumChannel.d.ts +0 -11
  79. package/dist/lib/structures/ForumChannel.js +0 -19
  80. package/dist/lib/structures/GroupChannel.d.ts +0 -62
  81. package/dist/lib/structures/GroupChannel.js +0 -133
  82. package/dist/lib/structures/Guild.d.ts +0 -654
  83. package/dist/lib/structures/Guild.js +0 -1319
  84. package/dist/lib/structures/GuildChannel.d.ts +0 -34
  85. package/dist/lib/structures/GuildChannel.js +0 -75
  86. package/dist/lib/structures/GuildPreview.d.ts +0 -50
  87. package/dist/lib/structures/GuildPreview.js +0 -119
  88. package/dist/lib/structures/GuildScheduledEvent.d.ts +0 -60
  89. package/dist/lib/structures/GuildScheduledEvent.js +0 -154
  90. package/dist/lib/structures/GuildTemplate.d.ts +0 -55
  91. package/dist/lib/structures/GuildTemplate.js +0 -126
  92. package/dist/lib/structures/Integration.d.ts +0 -54
  93. package/dist/lib/structures/Integration.js +0 -156
  94. package/dist/lib/structures/Interaction.d.ts +0 -40
  95. package/dist/lib/structures/Interaction.js +0 -91
  96. package/dist/lib/structures/InteractionResolvedChannel.d.ts +0 -28
  97. package/dist/lib/structures/InteractionResolvedChannel.js +0 -45
  98. package/dist/lib/structures/Invite.d.ts +0 -64
  99. package/dist/lib/structures/Invite.js +0 -193
  100. package/dist/lib/structures/InviteGuild.d.ts +0 -52
  101. package/dist/lib/structures/InviteGuild.js +0 -88
  102. package/dist/lib/structures/MediaChannel.d.ts +0 -11
  103. package/dist/lib/structures/MediaChannel.js +0 -19
  104. package/dist/lib/structures/Member.d.ts +0 -122
  105. package/dist/lib/structures/Member.js +0 -255
  106. package/dist/lib/structures/Message.d.ts +0 -183
  107. package/dist/lib/structures/Message.js +0 -455
  108. package/dist/lib/structures/ModalSubmitInteraction.d.ts +0 -128
  109. package/dist/lib/structures/ModalSubmitInteraction.js +0 -240
  110. package/dist/lib/structures/OAuthApplication.d.ts +0 -79
  111. package/dist/lib/structures/OAuthApplication.js +0 -210
  112. package/dist/lib/structures/OAuthGuild.d.ts +0 -35
  113. package/dist/lib/structures/OAuthGuild.js +0 -61
  114. package/dist/lib/structures/PartialApplication.d.ts +0 -30
  115. package/dist/lib/structures/PartialApplication.js +0 -67
  116. package/dist/lib/structures/Permission.d.ts +0 -21
  117. package/dist/lib/structures/Permission.js +0 -68
  118. package/dist/lib/structures/PermissionOverwrite.d.ts +0 -26
  119. package/dist/lib/structures/PermissionOverwrite.js +0 -49
  120. package/dist/lib/structures/PingInteraction.d.ts +0 -16
  121. package/dist/lib/structures/PingInteraction.js +0 -26
  122. package/dist/lib/structures/PrivateChannel.d.ts +0 -90
  123. package/dist/lib/structures/PrivateChannel.js +0 -131
  124. package/dist/lib/structures/PrivateThreadChannel.d.ts +0 -18
  125. package/dist/lib/structures/PrivateThreadChannel.js +0 -27
  126. package/dist/lib/structures/PublicThreadChannel.d.ts +0 -21
  127. package/dist/lib/structures/PublicThreadChannel.js +0 -37
  128. package/dist/lib/structures/Role.d.ts +0 -50
  129. package/dist/lib/structures/Role.js +0 -131
  130. package/dist/lib/structures/SKU.d.ts +0 -32
  131. package/dist/lib/structures/SKU.js +0 -53
  132. package/dist/lib/structures/StageChannel.d.ts +0 -33
  133. package/dist/lib/structures/StageChannel.js +0 -44
  134. package/dist/lib/structures/StageInstance.d.ts +0 -36
  135. package/dist/lib/structures/StageInstance.js +0 -94
  136. package/dist/lib/structures/Team.d.ts +0 -22
  137. package/dist/lib/structures/Team.js +0 -67
  138. package/dist/lib/structures/TestEntitlement.d.ts +0 -10
  139. package/dist/lib/structures/TestEntitlement.js +0 -21
  140. package/dist/lib/structures/TextChannel.d.ts +0 -34
  141. package/dist/lib/structures/TextChannel.js +0 -46
  142. package/dist/lib/structures/TextableChannel.d.ts +0 -158
  143. package/dist/lib/structures/TextableChannel.js +0 -276
  144. package/dist/lib/structures/TextableVoiceChannel.d.ts +0 -39
  145. package/dist/lib/structures/TextableVoiceChannel.js +0 -81
  146. package/dist/lib/structures/ThreadChannel.d.ts +0 -159
  147. package/dist/lib/structures/ThreadChannel.js +0 -295
  148. package/dist/lib/structures/ThreadOnlyChannel.d.ts +0 -99
  149. package/dist/lib/structures/ThreadOnlyChannel.js +0 -233
  150. package/dist/lib/structures/ThreadableChannel.d.ts +0 -36
  151. package/dist/lib/structures/ThreadableChannel.js +0 -58
  152. package/dist/lib/structures/UnavailableGuild.d.ts +0 -11
  153. package/dist/lib/structures/UnavailableGuild.js +0 -21
  154. package/dist/lib/structures/User.d.ts +0 -82
  155. package/dist/lib/structures/User.js +0 -168
  156. package/dist/lib/structures/VoiceChannel.d.ts +0 -20
  157. package/dist/lib/structures/VoiceChannel.js +0 -35
  158. package/dist/lib/structures/VoiceState.d.ts +0 -51
  159. package/dist/lib/structures/VoiceState.js +0 -140
  160. package/dist/lib/structures/Webhook.d.ts +0 -129
  161. package/dist/lib/structures/Webhook.js +0 -206
  162. package/dist/lib/types/applications.d.ts +0 -448
  163. package/dist/lib/types/audit-log.d.ts +0 -121
  164. package/dist/lib/types/auto-moderation.d.ts +0 -99
  165. package/dist/lib/types/channels.d.ts +0 -1150
  166. package/dist/lib/types/client.d.ts +0 -228
  167. package/dist/lib/types/events.d.ts +0 -260
  168. package/dist/lib/types/gateway-raw.d.ts +0 -567
  169. package/dist/lib/types/gateway.d.ts +0 -338
  170. package/dist/lib/types/guild-template.d.ts +0 -33
  171. package/dist/lib/types/guilds.d.ts +0 -854
  172. package/dist/lib/types/index.d.ts +0 -18
  173. package/dist/lib/types/interactions.d.ts +0 -376
  174. package/dist/lib/types/json.d.ts +0 -709
  175. package/dist/lib/types/misc.d.ts +0 -13
  176. package/dist/lib/types/oauth.d.ts +0 -201
  177. package/dist/lib/types/request-handler.d.ts +0 -52
  178. package/dist/lib/types/scheduled-events.d.ts +0 -88
  179. package/dist/lib/types/shared.d.ts +0 -9
  180. package/dist/lib/types/users.d.ts +0 -45
  181. package/dist/lib/types/voice.d.ts +0 -45
  182. package/dist/lib/types/webhooks.d.ts +0 -73
  183. package/dist/lib/util/Collection.d.ts +0 -47
  184. package/dist/lib/util/Collection.js +0 -78
  185. package/dist/lib/util/Errors.d.ts +0 -29
  186. package/dist/lib/util/Errors.js +0 -56
  187. package/dist/lib/util/Routes.d.ts +0 -124
  188. package/dist/lib/util/Routes.js +0 -243
  189. package/dist/lib/util/SimpleCollection.d.ts +0 -12
  190. package/dist/lib/util/SimpleCollection.js +0 -81
  191. package/dist/lib/util/TypedCollection.d.ts +0 -24
  192. package/dist/lib/util/TypedCollection.js +0 -76
  193. package/dist/lib/util/TypedEmitter.d.ts +0 -19
  194. package/dist/lib/util/TypedEmitter.js +0 -19
  195. package/dist/lib/util/Util.d.ts +0 -52
  196. package/dist/lib/util/Util.js +0 -469
  197. package/dist/lib/util/interactions/InteractionOptionsWrapper.d.ts +0 -170
  198. package/dist/lib/util/interactions/InteractionOptionsWrapper.js +0 -213
  199. package/dist/lib/util/interactions/MessageInteractionResponse.d.ts +0 -24
  200. package/dist/lib/util/interactions/MessageInteractionResponse.js +0 -28
  201. package/dist/lib/util/interactions/ModalSubmitInteractionComponentsWrapper.d.ts +0 -24
  202. package/dist/lib/util/interactions/ModalSubmitInteractionComponentsWrapper.js +0 -34
  203. package/dist/lib/util/interactions/SelectMenuValuesWrapper.d.ts +0 -60
  204. package/dist/lib/util/interactions/SelectMenuValuesWrapper.js +0 -124
@@ -1,26 +0,0 @@
1
- /** @module ShardManager */
2
- import Shard from "./Shard";
3
- import type Client from "../Client";
4
- import type { GatewayOptions, ShardManagerInstanceOptions } from "../types/gateway";
5
- import Collection from "../util/Collection";
6
- /** A manager for all the client's shards. */
7
- export default class ShardManager extends Collection<number, Shard> {
8
- #private;
9
- private _gatewayURL?;
10
- connected: boolean;
11
- options: ShardManagerInstanceOptions;
12
- constructor(client: Client, options?: GatewayOptions);
13
- private _connect;
14
- private _forGuild;
15
- private _gatewayURLForShard;
16
- private _ready;
17
- private _resetConnectQueue;
18
- connect(): Promise<void>;
19
- /**
20
- * Disconnect all shards.
21
- * @param reconnect If shards should be reconnected. Defaults to {@link Types/Gateway~GatewayOptions#autoReconnect | GatewayOptions#autoReconnect}
22
- */
23
- disconnect(reconnect?: boolean): void;
24
- spawn(id: number): void;
25
- tryConnect(): void;
26
- }
@@ -1,304 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- /** @module ShardManager */
5
- const Shard_1 = tslib_1.__importDefault(require("./Shard"));
6
- const Constants_1 = require("../Constants");
7
- const Collection_1 = tslib_1.__importDefault(require("../util/Collection"));
8
- /* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-var-requires, @typescript-eslint/no-unsafe-assignment, unicorn/prefer-module */
9
- // @ts-ignore
10
- let Erlpack;
11
- try {
12
- Erlpack = require("erlpack");
13
- }
14
- catch { }
15
- /* eslint-enable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-redundant-type-constituents, @typescript-eslint/no-var-requires, @typescript-eslint/no-unsafe-assignment, unicorn/prefer-module */
16
- /** A manager for all the client's shards. */
17
- class ShardManager extends Collection_1.default {
18
- _gatewayURL;
19
- #buckets;
20
- #client;
21
- #connectQueue;
22
- #connectTimeout;
23
- connected = false;
24
- options;
25
- constructor(client, options = {}) {
26
- super();
27
- this.#buckets = {};
28
- this.#client = client;
29
- this.#connectQueue = [];
30
- this.#connectTimeout = null;
31
- this.options = {
32
- autoReconnect: options.autoReconnect ?? true,
33
- compress: options.compress ?? false,
34
- connectionProperties: {
35
- browser: options.connectionProperties?.browser ?? "Oceanic",
36
- device: options.connectionProperties?.device ?? "Oceanic",
37
- os: options.connectionProperties?.os ?? process.platform
38
- },
39
- concurrency: options.concurrency === "auto" || options.concurrency && options.concurrency < 1 ? -1 : options.concurrency ?? -1,
40
- connectionTimeout: options.connectionTimeout ?? 30000,
41
- firstShardID: options.firstShardID && options.firstShardID < 0 ? 0 : options.firstShardID ?? 0,
42
- getAllUsers: options.getAllUsers ?? false,
43
- override: options.override ?? {
44
- appendQuery: true,
45
- gatewayURLIsResumeURL: false,
46
- timeBetweenShardConnects: 5000
47
- },
48
- guildCreateTimeout: options.guildCreateTimeout ?? 2000,
49
- intents: typeof options.intents === "number" ? options.intents : 0,
50
- largeThreshold: options.largeThreshold ?? 250,
51
- lastShardID: options.lastShardID ?? -1,
52
- maxReconnectAttempts: options.maxReconnectAttempts ?? Infinity,
53
- maxResumeAttempts: options.maxResumeAttempts ?? 10,
54
- maxShards: options.maxShards === "auto" || options.maxShards && options.maxShards < 1 ? -1 : options.maxShards ?? -1,
55
- presence: {
56
- activities: options.presence?.activities ?? [],
57
- afk: options.presence?.afk ?? false,
58
- status: options.presence?.status ?? "online"
59
- },
60
- reconnectDelay: options.reconnectDelay ?? ((lastDelay, attempts) => Math.pow(attempts + 1, 0.7) * 20000),
61
- removeDisallowedIntents: options.removeDisallowedIntents ?? false,
62
- seedVoiceConnections: options.seedVoiceConnections ?? false,
63
- shardIDs: options.shardIDs ?? [],
64
- ws: options.ws ?? {}
65
- };
66
- this.options.override.appendQuery ??= (this.options.override.getBot === undefined && this.options.override.url === undefined);
67
- this.options.override.gatewayURLIsResumeURL ??= (this.options.override.getBot !== undefined || this.options.override.url !== undefined);
68
- this.options.override.timeBetweenShardConnects ??= 5000;
69
- if (this.options.lastShardID === -1 && this.options.maxShards !== -1) {
70
- this.options.lastShardID = this.options.maxShards - 1;
71
- }
72
- if (!Array.isArray(this.options.shardIDs)) {
73
- this.options.shardIDs = [];
74
- }
75
- if (Object.hasOwn(options, "intents")) {
76
- if (Array.isArray(options.intents)) {
77
- let bitmask = 0;
78
- for (const intent of options.intents) {
79
- if (typeof intent === "number") {
80
- bitmask |= intent;
81
- }
82
- else if (Constants_1.Intents[intent]) {
83
- bitmask |= Constants_1.Intents[intent];
84
- }
85
- else {
86
- if (intent === "ALL") {
87
- bitmask = Constants_1.AllIntents;
88
- break;
89
- }
90
- else if (intent === "ALL_NON_PRIVILEGED") {
91
- bitmask = Constants_1.AllNonPrivilegedIntents;
92
- continue;
93
- }
94
- this.#client.emit("warn", `Unknown intent: ${intent}`);
95
- }
96
- }
97
- this.options.intents = bitmask;
98
- }
99
- }
100
- else {
101
- this.options.intents = Constants_1.AllNonPrivilegedIntents;
102
- }
103
- if (this.options.getAllUsers && !(this.options.intents & Constants_1.Intents.GUILD_MEMBERS)) {
104
- throw new TypeError("Guild members cannot be requested without the GUILD_MEMBERS intent");
105
- }
106
- }
107
- _connect(shard) {
108
- this.#connectQueue.push(shard);
109
- this.tryConnect();
110
- }
111
- _forGuild(guild) {
112
- if (this.options.maxShards === -1) {
113
- return undefined;
114
- }
115
- return this.get((this.#client.guildShardMap[guild] ??= Number((BigInt(guild) >> 22n) % BigInt(this.options.maxShards))));
116
- }
117
- async _gatewayURLForShard(shard) {
118
- if (this.options.override.url !== undefined) {
119
- return this.options.override.url(shard, this.options.shardIDs.length);
120
- }
121
- if (this._gatewayURL) {
122
- return this._gatewayURL;
123
- }
124
- // how did we manage to get all the way to connecting without gatewayURL being set?
125
- return (this._gatewayURL = (await (this.options.override.getBot?.() ?? this.#client.rest.getBotGateway())).url);
126
- }
127
- _ready(id) {
128
- const rateLimitKey = (id % this.options.concurrency) ?? 0;
129
- this.#buckets[rateLimitKey] = Date.now();
130
- this.tryConnect();
131
- }
132
- _resetConnectQueue() {
133
- this.#connectQueue = [];
134
- }
135
- async connect() {
136
- if (this.connected) {
137
- throw new Error("Already connected.");
138
- }
139
- let url, data;
140
- const overrideURL = (this.options.override.getBot || this.options.override.url) !== undefined;
141
- try {
142
- if (this.options.maxShards === -1 || this.options.concurrency === -1) {
143
- data = await (this.options.override.getBot?.() ?? this.#client.rest.getBotGateway());
144
- url = data.url;
145
- }
146
- else {
147
- url = overrideURL ? null : (await this.#client.rest.getGateway()).url;
148
- }
149
- }
150
- catch (err) {
151
- throw new TypeError("Failed to get gateway information.", { cause: err });
152
- }
153
- if (url && this.options.override.appendQuery) {
154
- if (url.includes("?")) {
155
- url = url.slice(0, url.indexOf("?"));
156
- }
157
- if (!url.endsWith("/")) {
158
- url += "/";
159
- }
160
- }
161
- const privilegedIntentMapping = [
162
- [Constants_1.Intents.GUILD_PRESENCES, [Constants_1.ApplicationFlags.GATEWAY_PRESENCE, Constants_1.ApplicationFlags.GATEWAY_PRESENCE_LIMITED]],
163
- [Constants_1.Intents.GUILD_MEMBERS, [Constants_1.ApplicationFlags.GATEWAY_GUILD_MEMBERS, Constants_1.ApplicationFlags.GATEWAY_GUILD_MEMBERS_LIMITED]],
164
- [Constants_1.Intents.MESSAGE_CONTENT, [Constants_1.ApplicationFlags.GATEWAY_MESSAGE_CONTENT, Constants_1.ApplicationFlags.GATEWAY_MESSAGE_CONTENT_LIMITED]]
165
- ];
166
- /* eslint-disable @typescript-eslint/no-unsafe-enum-comparison */
167
- if (this.options.removeDisallowedIntents && privilegedIntentMapping.some(([intent]) => (this.options.intents & intent) === intent)) {
168
- const { flags } = await this.#client.rest.applications.getCurrent();
169
- const check = (intent, allowed) => {
170
- if ((this.options.intents & intent) === intent && !allowed.some(flag => (flags & flag) === flag)) {
171
- this.#client.emit("warn", `removeDisallowedIntents is enabled, and ${Constants_1.Intents[intent]} was included but not found to be allowed. It has been removed.`);
172
- this.options.intents &= ~intent;
173
- }
174
- };
175
- for (const [intent, allowed] of privilegedIntentMapping) {
176
- check(intent, allowed);
177
- }
178
- }
179
- /* eslint-enable @typescript-eslint/no-unsafe-enum-comparison */
180
- if (url && this.options.override.appendQuery) {
181
- url += `?v=${Constants_1.GATEWAY_VERSION}&encoding=${Erlpack ? "etf" : "json"}`;
182
- if (this.options.compress) {
183
- url += "&compress=zlib-stream";
184
- }
185
- this._gatewayURL = url;
186
- }
187
- if (this.options.maxShards === -1) {
188
- if (!data || !data.shards) {
189
- throw new TypeError("AutoSharding failed, missing required information from Discord.");
190
- }
191
- this.options.maxShards = data.shards;
192
- if (this.options.lastShardID === -1) {
193
- this.options.lastShardID = data.shards - 1;
194
- }
195
- }
196
- if (this.options.concurrency === -1) {
197
- if (!data) {
198
- throw new TypeError("AutoConcurrency failed, missing required information from Discord.");
199
- }
200
- this.options.concurrency = data.sessionStartLimit.maxConcurrency;
201
- }
202
- if (this.options.shardIDs.length === 0 && this.options.firstShardID !== undefined && this.options.lastShardID !== undefined) {
203
- for (let i = this.options.firstShardID; i <= this.options.lastShardID; i++) {
204
- this.options.shardIDs.push(i);
205
- }
206
- }
207
- this.connected = true;
208
- for (const id of this.options.shardIDs) {
209
- this.spawn(id);
210
- }
211
- }
212
- /**
213
- * Disconnect all shards.
214
- * @param reconnect If shards should be reconnected. Defaults to {@link Types/Gateway~GatewayOptions#autoReconnect | GatewayOptions#autoReconnect}
215
- */
216
- disconnect(reconnect = this.options.autoReconnect) {
217
- if (!reconnect) {
218
- this.connected = false;
219
- }
220
- this.#client.ready = false;
221
- for (const [, shard] of this)
222
- shard.disconnect(reconnect);
223
- this._resetConnectQueue();
224
- }
225
- spawn(id) {
226
- let shard = this.get(id);
227
- if (!shard) {
228
- shard = new Shard_1.default(id, this.#client);
229
- this.set(id, shard);
230
- shard
231
- .on("ready", () => {
232
- this.#client.emit("shardReady", id);
233
- if (this.#client.ready) {
234
- return;
235
- }
236
- for (const other of this.values()) {
237
- if (!other.ready) {
238
- return;
239
- }
240
- }
241
- this.#client.ready = true;
242
- this.#client.startTime = Date.now();
243
- this.#client.emit("ready");
244
- })
245
- .on("resume", () => {
246
- this.#client.emit("shardResume", id);
247
- if (this.#client.ready) {
248
- return;
249
- }
250
- for (const other of this.values()) {
251
- if (!other.ready) {
252
- return;
253
- }
254
- }
255
- this.#client.ready = true;
256
- this.#client.startTime = Date.now();
257
- this.#client.emit("ready");
258
- })
259
- .on("disconnect", error => {
260
- this.#client.emit("shardDisconnect", error, id);
261
- for (const other of this.values()) {
262
- if (other.ready) {
263
- return;
264
- }
265
- }
266
- this.#client.ready = false;
267
- this.#client.startTime = 0;
268
- this.#client.emit("disconnect");
269
- })
270
- .on("preReady", () => {
271
- this.#client.emit("shardPreReady", id);
272
- });
273
- }
274
- if (shard.status === "disconnected") {
275
- this._connect(shard);
276
- }
277
- }
278
- tryConnect() {
279
- if (this.#connectQueue.length === 0) {
280
- return;
281
- }
282
- for (const shard of this.#connectQueue) {
283
- const rateLimitKey = (shard.id % this.options.concurrency) ?? 0;
284
- const lastConnect = this.#buckets[rateLimitKey] ?? 0;
285
- if (!shard.sessionID && Date.now() - lastConnect < this.options.override.timeBetweenShardConnects) {
286
- continue;
287
- }
288
- if (this.some(s => s.connecting && ((s.id % this.options.concurrency) || 0) === rateLimitKey)) {
289
- continue;
290
- }
291
- void shard.connect();
292
- this.#buckets[rateLimitKey] = Date.now();
293
- this.#connectQueue.splice(this.#connectQueue.findIndex(s => s.id === shard.id), 1);
294
- }
295
- if (!this.#connectTimeout && this.#connectQueue.length !== 0) {
296
- this.#connectTimeout = setTimeout(() => {
297
- this.#connectTimeout = null;
298
- this.tryConnect();
299
- }, 500);
300
- }
301
- }
302
- }
303
- exports.default = ShardManager;
304
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2hhcmRNYW5hZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL2dhdGV3YXkvU2hhcmRNYW5hZ2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDJCQUEyQjtBQUMzQiw0REFBNEI7QUFFNUIsNENBTXNCO0FBRXRCLDRFQUE0QztBQUU1Qyw2TU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sRUFBRSxLQUFLLEtBQUssQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztRQUN2RixDQUFDO1FBQ0QsSUFBSSxDQUFDLElBQUksQ0FBQyxlQUFlLElBQUksSUFBSSxDQUFDLGFBQWEsQ0FBQyxNQUFNLEtBQUssQ0FBQyxFQUFFLENBQUM7WUFDM0QsSUFBSSxDQUFDLGVBQWUsR0FBRyxVQUFVLENBQUMsR0FBRyxFQUFFO2dCQUNuQyxJQUFJLENBQUMsZUFBZSxHQUFHLElBQUksQ0FBQztnQkFDNUIsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDO1lBQ3RCLENBQUMsRUFBRSxHQUFHLENBQUMsQ0FBQztRQUNaLENBQUM7SUFFTCxDQUFDO0NBQ0o7QUF0VEQsK0JBc1RDIn0=
@@ -1,83 +0,0 @@
1
- export type * from "./types/index";
2
- export { default as Channel } from "./structures/Channel";
3
- export { default as Interaction } from "./structures/Interaction";
4
- export { default as AnnouncementChannel } from "./structures/AnnouncementChannel";
5
- export { default as AnnouncementThreadChannel } from "./structures/AnnouncementThreadChannel";
6
- export { default as Application } from "./structures/Application";
7
- export { default as ApplicationCommand } from "./structures/ApplicationCommand";
8
- export { default as Attachment } from "./structures/Attachment";
9
- export { default as AuditLogEntry } from "./structures/AuditLogEntry";
10
- export { default as AutocompleteInteraction } from "./structures/AutocompleteInteraction";
11
- export { default as AutoModerationRule } from "./structures/AutoModerationRule";
12
- export { default as Base } from "./structures/Base";
13
- export { default as BaseEntitlement } from "./structures/BaseEntitlement";
14
- export { default as Bucket } from "./rest/Bucket";
15
- export { default as CategoryChannel } from "./structures/CategoryChannel";
16
- export { default as Client } from "./Client";
17
- export { default as ClientApplication } from "./structures/ClientApplication";
18
- export * from "./Constants";
19
- export * as Constants from "./Constants";
20
- export { default as CommandInteraction } from "./structures/CommandInteraction";
21
- export { default as Collection } from "./util/Collection";
22
- export { default as ComponentInteraction } from "./structures/ComponentInteraction";
23
- export { default as DiscordHTTPError } from "./rest/DiscordHTTPError";
24
- export { default as DiscordRESTError } from "./rest/DiscordRESTError";
25
- export * from "./util/Errors";
26
- export * as Errors from "./util/Errors";
27
- export { default as Entitlement } from "./structures/Entitlement";
28
- export { default as ExtendedUser } from "./structures/ExtendedUser";
29
- export { default as ForumChannel } from "./structures/ForumChannel";
30
- export { default as GroupChannel } from "./structures/GroupChannel";
31
- export { default as Guild } from "./structures/Guild";
32
- export { default as GuildChannel } from "./structures/GuildChannel";
33
- export { default as GuildPreview } from "./structures/GuildPreview";
34
- export { default as GuildScheduledEvent } from "./structures/GuildScheduledEvent";
35
- export { default as GuildTemplate } from "./structures/GuildTemplate";
36
- export { default as Integration } from "./structures/Integration";
37
- export { default as InteractionResolvedChannel } from "./structures/InteractionResolvedChannel";
38
- export { default as InteractionOptionsWrapper } from "./util/interactions/InteractionOptionsWrapper";
39
- export { default as Invite } from "./structures/Invite";
40
- export { default as InviteGuild } from "./structures/InviteGuild";
41
- export { default as MediaChannel } from "./structures/MediaChannel";
42
- export { default as Member } from "./structures/Member";
43
- export { default as Message } from "./structures/Message";
44
- export { default as MessageInteractionResponse } from "./util/interactions/MessageInteractionResponse";
45
- export { default as ModalSubmitInteraction } from "./structures/ModalSubmitInteraction";
46
- export { default as ModalSubmitInteractionComponentsWrapper } from "./util/interactions/ModalSubmitInteractionComponentsWrapper";
47
- export { default as OAuthApplication } from "./structures/OAuthApplication";
48
- export { default as OAuthGuild } from "./structures/OAuthGuild";
49
- export { default as OAuthHelper } from "./rest/OAuthHelper";
50
- export { default as PartialApplication } from "./structures/PartialApplication";
51
- export { default as Permission } from "./structures/Permission";
52
- export { default as PermissionOverwrite } from "./structures/PermissionOverwrite";
53
- export { default as PingInteraction } from "./structures/PingInteraction";
54
- export { default as PrivateChannel } from "./structures/PrivateChannel";
55
- export { default as PrivateThreadChannel } from "./structures/PrivateThreadChannel";
56
- export { default as PublicThreadChannel } from "./structures/PublicThreadChannel";
57
- export { default as RequestHandler } from "./rest/RequestHandler";
58
- export { default as RESTManager } from "./rest/RESTManager";
59
- export { default as Role } from "./structures/Role";
60
- export * as Routes from "./util/Routes";
61
- export { default as SelectMenuValuesWrapper } from "./util/interactions/SelectMenuValuesWrapper";
62
- export { default as SequentialBucket } from "./rest/SequentialBucket";
63
- export { default as SimpleCollection } from "./util/SimpleCollection";
64
- export { default as Shard } from "./gateway/Shard";
65
- export { default as ShardManager } from "./gateway/ShardManager";
66
- export { default as StageChannel } from "./structures/StageChannel";
67
- export { default as StageInstance } from "./structures/StageInstance";
68
- export { default as Team } from "./structures/Team";
69
- export { default as TestEntitlement } from "./structures/TestEntitlement";
70
- export { default as TextableChannel } from "./structures/TextableChannel";
71
- export { default as TextableVoiceChannel } from "./structures/TextableVoiceChannel";
72
- export { default as TextChannel } from "./structures/TextChannel";
73
- export { default as ThreadableChannel } from "./structures/ThreadableChannel";
74
- export { default as ThreadChannel } from "./structures/ThreadChannel";
75
- export { default as ThreadOnlyChannel } from "./structures/ThreadOnlyChannel";
76
- export { default as TypedCollection } from "./util/TypedCollection";
77
- export { default as TypedEmitter } from "./util/TypedEmitter";
78
- export { default as UnavailableGuild } from "./structures/UnavailableGuild";
79
- export { default as User } from "./structures/User";
80
- export { default as Util } from "./util/Util";
81
- export { default as VoiceChannel } from "./structures/VoiceChannel";
82
- export { default as VoiceState } from "./structures/VoiceState";
83
- export { default as Webhook } from "./structures/Webhook";
package/dist/lib/index.js DELETED
@@ -1,166 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PingInteraction = exports.PermissionOverwrite = exports.Permission = exports.PartialApplication = exports.OAuthHelper = exports.OAuthGuild = exports.OAuthApplication = exports.ModalSubmitInteractionComponentsWrapper = exports.ModalSubmitInteraction = exports.MessageInteractionResponse = exports.Message = exports.Member = exports.MediaChannel = exports.InviteGuild = exports.Invite = exports.InteractionOptionsWrapper = exports.InteractionResolvedChannel = exports.Integration = exports.GuildTemplate = exports.GuildScheduledEvent = exports.GuildPreview = exports.GuildChannel = exports.Guild = exports.GroupChannel = exports.ForumChannel = exports.ExtendedUser = exports.Entitlement = exports.Errors = exports.DiscordRESTError = exports.DiscordHTTPError = exports.ComponentInteraction = exports.Collection = exports.CommandInteraction = exports.Constants = exports.ClientApplication = exports.Client = exports.CategoryChannel = exports.Bucket = exports.BaseEntitlement = exports.Base = exports.AutoModerationRule = exports.AutocompleteInteraction = exports.AuditLogEntry = exports.Attachment = exports.ApplicationCommand = exports.Application = exports.AnnouncementThreadChannel = exports.AnnouncementChannel = exports.Interaction = exports.Channel = void 0;
4
- exports.Webhook = exports.VoiceState = exports.VoiceChannel = exports.Util = exports.User = exports.UnavailableGuild = exports.TypedEmitter = exports.TypedCollection = exports.ThreadOnlyChannel = exports.ThreadChannel = exports.ThreadableChannel = exports.TextChannel = exports.TextableVoiceChannel = exports.TextableChannel = exports.TestEntitlement = exports.Team = exports.StageInstance = exports.StageChannel = exports.ShardManager = exports.Shard = exports.SimpleCollection = exports.SequentialBucket = exports.SelectMenuValuesWrapper = exports.Routes = exports.Role = exports.RESTManager = exports.RequestHandler = exports.PublicThreadChannel = exports.PrivateThreadChannel = exports.PrivateChannel = void 0;
5
- const tslib_1 = require("tslib");
6
- // Channel and Interaction MUST be at the top due to circular imports
7
- var Channel_1 = require("./structures/Channel");
8
- Object.defineProperty(exports, "Channel", { enumerable: true, get: function () { return tslib_1.__importDefault(Channel_1).default; } });
9
- var Interaction_1 = require("./structures/Interaction");
10
- Object.defineProperty(exports, "Interaction", { enumerable: true, get: function () { return tslib_1.__importDefault(Interaction_1).default; } });
11
- var AnnouncementChannel_1 = require("./structures/AnnouncementChannel");
12
- Object.defineProperty(exports, "AnnouncementChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(AnnouncementChannel_1).default; } });
13
- var AnnouncementThreadChannel_1 = require("./structures/AnnouncementThreadChannel");
14
- Object.defineProperty(exports, "AnnouncementThreadChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(AnnouncementThreadChannel_1).default; } });
15
- var Application_1 = require("./structures/Application");
16
- Object.defineProperty(exports, "Application", { enumerable: true, get: function () { return tslib_1.__importDefault(Application_1).default; } });
17
- var ApplicationCommand_1 = require("./structures/ApplicationCommand");
18
- Object.defineProperty(exports, "ApplicationCommand", { enumerable: true, get: function () { return tslib_1.__importDefault(ApplicationCommand_1).default; } });
19
- var Attachment_1 = require("./structures/Attachment");
20
- Object.defineProperty(exports, "Attachment", { enumerable: true, get: function () { return tslib_1.__importDefault(Attachment_1).default; } });
21
- var AuditLogEntry_1 = require("./structures/AuditLogEntry");
22
- Object.defineProperty(exports, "AuditLogEntry", { enumerable: true, get: function () { return tslib_1.__importDefault(AuditLogEntry_1).default; } });
23
- var AutocompleteInteraction_1 = require("./structures/AutocompleteInteraction");
24
- Object.defineProperty(exports, "AutocompleteInteraction", { enumerable: true, get: function () { return tslib_1.__importDefault(AutocompleteInteraction_1).default; } });
25
- var AutoModerationRule_1 = require("./structures/AutoModerationRule");
26
- Object.defineProperty(exports, "AutoModerationRule", { enumerable: true, get: function () { return tslib_1.__importDefault(AutoModerationRule_1).default; } });
27
- var Base_1 = require("./structures/Base");
28
- Object.defineProperty(exports, "Base", { enumerable: true, get: function () { return tslib_1.__importDefault(Base_1).default; } });
29
- var BaseEntitlement_1 = require("./structures/BaseEntitlement");
30
- Object.defineProperty(exports, "BaseEntitlement", { enumerable: true, get: function () { return tslib_1.__importDefault(BaseEntitlement_1).default; } });
31
- var Bucket_1 = require("./rest/Bucket");
32
- Object.defineProperty(exports, "Bucket", { enumerable: true, get: function () { return tslib_1.__importDefault(Bucket_1).default; } });
33
- var CategoryChannel_1 = require("./structures/CategoryChannel");
34
- Object.defineProperty(exports, "CategoryChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(CategoryChannel_1).default; } });
35
- var Client_1 = require("./Client");
36
- Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return tslib_1.__importDefault(Client_1).default; } });
37
- var ClientApplication_1 = require("./structures/ClientApplication");
38
- Object.defineProperty(exports, "ClientApplication", { enumerable: true, get: function () { return tslib_1.__importDefault(ClientApplication_1).default; } });
39
- tslib_1.__exportStar(require("./Constants"), exports);
40
- exports.Constants = tslib_1.__importStar(require("./Constants"));
41
- var CommandInteraction_1 = require("./structures/CommandInteraction");
42
- Object.defineProperty(exports, "CommandInteraction", { enumerable: true, get: function () { return tslib_1.__importDefault(CommandInteraction_1).default; } });
43
- var Collection_1 = require("./util/Collection");
44
- Object.defineProperty(exports, "Collection", { enumerable: true, get: function () { return tslib_1.__importDefault(Collection_1).default; } });
45
- var ComponentInteraction_1 = require("./structures/ComponentInteraction");
46
- Object.defineProperty(exports, "ComponentInteraction", { enumerable: true, get: function () { return tslib_1.__importDefault(ComponentInteraction_1).default; } });
47
- var DiscordHTTPError_1 = require("./rest/DiscordHTTPError");
48
- Object.defineProperty(exports, "DiscordHTTPError", { enumerable: true, get: function () { return tslib_1.__importDefault(DiscordHTTPError_1).default; } });
49
- var DiscordRESTError_1 = require("./rest/DiscordRESTError");
50
- Object.defineProperty(exports, "DiscordRESTError", { enumerable: true, get: function () { return tslib_1.__importDefault(DiscordRESTError_1).default; } });
51
- tslib_1.__exportStar(require("./util/Errors"), exports);
52
- exports.Errors = tslib_1.__importStar(require("./util/Errors"));
53
- var Entitlement_1 = require("./structures/Entitlement");
54
- Object.defineProperty(exports, "Entitlement", { enumerable: true, get: function () { return tslib_1.__importDefault(Entitlement_1).default; } });
55
- var ExtendedUser_1 = require("./structures/ExtendedUser");
56
- Object.defineProperty(exports, "ExtendedUser", { enumerable: true, get: function () { return tslib_1.__importDefault(ExtendedUser_1).default; } });
57
- var ForumChannel_1 = require("./structures/ForumChannel");
58
- Object.defineProperty(exports, "ForumChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(ForumChannel_1).default; } });
59
- var GroupChannel_1 = require("./structures/GroupChannel");
60
- Object.defineProperty(exports, "GroupChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(GroupChannel_1).default; } });
61
- var Guild_1 = require("./structures/Guild");
62
- Object.defineProperty(exports, "Guild", { enumerable: true, get: function () { return tslib_1.__importDefault(Guild_1).default; } });
63
- var GuildChannel_1 = require("./structures/GuildChannel");
64
- Object.defineProperty(exports, "GuildChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(GuildChannel_1).default; } });
65
- var GuildPreview_1 = require("./structures/GuildPreview");
66
- Object.defineProperty(exports, "GuildPreview", { enumerable: true, get: function () { return tslib_1.__importDefault(GuildPreview_1).default; } });
67
- var GuildScheduledEvent_1 = require("./structures/GuildScheduledEvent");
68
- Object.defineProperty(exports, "GuildScheduledEvent", { enumerable: true, get: function () { return tslib_1.__importDefault(GuildScheduledEvent_1).default; } });
69
- var GuildTemplate_1 = require("./structures/GuildTemplate");
70
- Object.defineProperty(exports, "GuildTemplate", { enumerable: true, get: function () { return tslib_1.__importDefault(GuildTemplate_1).default; } });
71
- var Integration_1 = require("./structures/Integration");
72
- Object.defineProperty(exports, "Integration", { enumerable: true, get: function () { return tslib_1.__importDefault(Integration_1).default; } });
73
- var InteractionResolvedChannel_1 = require("./structures/InteractionResolvedChannel");
74
- Object.defineProperty(exports, "InteractionResolvedChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(InteractionResolvedChannel_1).default; } });
75
- var InteractionOptionsWrapper_1 = require("./util/interactions/InteractionOptionsWrapper");
76
- Object.defineProperty(exports, "InteractionOptionsWrapper", { enumerable: true, get: function () { return tslib_1.__importDefault(InteractionOptionsWrapper_1).default; } });
77
- var Invite_1 = require("./structures/Invite");
78
- Object.defineProperty(exports, "Invite", { enumerable: true, get: function () { return tslib_1.__importDefault(Invite_1).default; } });
79
- var InviteGuild_1 = require("./structures/InviteGuild");
80
- Object.defineProperty(exports, "InviteGuild", { enumerable: true, get: function () { return tslib_1.__importDefault(InviteGuild_1).default; } });
81
- var MediaChannel_1 = require("./structures/MediaChannel");
82
- Object.defineProperty(exports, "MediaChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(MediaChannel_1).default; } });
83
- var Member_1 = require("./structures/Member");
84
- Object.defineProperty(exports, "Member", { enumerable: true, get: function () { return tslib_1.__importDefault(Member_1).default; } });
85
- var Message_1 = require("./structures/Message");
86
- Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return tslib_1.__importDefault(Message_1).default; } });
87
- var MessageInteractionResponse_1 = require("./util/interactions/MessageInteractionResponse");
88
- Object.defineProperty(exports, "MessageInteractionResponse", { enumerable: true, get: function () { return tslib_1.__importDefault(MessageInteractionResponse_1).default; } });
89
- var ModalSubmitInteraction_1 = require("./structures/ModalSubmitInteraction");
90
- Object.defineProperty(exports, "ModalSubmitInteraction", { enumerable: true, get: function () { return tslib_1.__importDefault(ModalSubmitInteraction_1).default; } });
91
- var ModalSubmitInteractionComponentsWrapper_1 = require("./util/interactions/ModalSubmitInteractionComponentsWrapper");
92
- Object.defineProperty(exports, "ModalSubmitInteractionComponentsWrapper", { enumerable: true, get: function () { return tslib_1.__importDefault(ModalSubmitInteractionComponentsWrapper_1).default; } });
93
- var OAuthApplication_1 = require("./structures/OAuthApplication");
94
- Object.defineProperty(exports, "OAuthApplication", { enumerable: true, get: function () { return tslib_1.__importDefault(OAuthApplication_1).default; } });
95
- var OAuthGuild_1 = require("./structures/OAuthGuild");
96
- Object.defineProperty(exports, "OAuthGuild", { enumerable: true, get: function () { return tslib_1.__importDefault(OAuthGuild_1).default; } });
97
- var OAuthHelper_1 = require("./rest/OAuthHelper");
98
- Object.defineProperty(exports, "OAuthHelper", { enumerable: true, get: function () { return tslib_1.__importDefault(OAuthHelper_1).default; } });
99
- var PartialApplication_1 = require("./structures/PartialApplication");
100
- Object.defineProperty(exports, "PartialApplication", { enumerable: true, get: function () { return tslib_1.__importDefault(PartialApplication_1).default; } });
101
- var Permission_1 = require("./structures/Permission");
102
- Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return tslib_1.__importDefault(Permission_1).default; } });
103
- var PermissionOverwrite_1 = require("./structures/PermissionOverwrite");
104
- Object.defineProperty(exports, "PermissionOverwrite", { enumerable: true, get: function () { return tslib_1.__importDefault(PermissionOverwrite_1).default; } });
105
- var PingInteraction_1 = require("./structures/PingInteraction");
106
- Object.defineProperty(exports, "PingInteraction", { enumerable: true, get: function () { return tslib_1.__importDefault(PingInteraction_1).default; } });
107
- var PrivateChannel_1 = require("./structures/PrivateChannel");
108
- Object.defineProperty(exports, "PrivateChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(PrivateChannel_1).default; } });
109
- var PrivateThreadChannel_1 = require("./structures/PrivateThreadChannel");
110
- Object.defineProperty(exports, "PrivateThreadChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(PrivateThreadChannel_1).default; } });
111
- var PublicThreadChannel_1 = require("./structures/PublicThreadChannel");
112
- Object.defineProperty(exports, "PublicThreadChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(PublicThreadChannel_1).default; } });
113
- var RequestHandler_1 = require("./rest/RequestHandler");
114
- Object.defineProperty(exports, "RequestHandler", { enumerable: true, get: function () { return tslib_1.__importDefault(RequestHandler_1).default; } });
115
- var RESTManager_1 = require("./rest/RESTManager");
116
- Object.defineProperty(exports, "RESTManager", { enumerable: true, get: function () { return tslib_1.__importDefault(RESTManager_1).default; } });
117
- var Role_1 = require("./structures/Role");
118
- Object.defineProperty(exports, "Role", { enumerable: true, get: function () { return tslib_1.__importDefault(Role_1).default; } });
119
- exports.Routes = tslib_1.__importStar(require("./util/Routes"));
120
- var SelectMenuValuesWrapper_1 = require("./util/interactions/SelectMenuValuesWrapper");
121
- Object.defineProperty(exports, "SelectMenuValuesWrapper", { enumerable: true, get: function () { return tslib_1.__importDefault(SelectMenuValuesWrapper_1).default; } });
122
- var SequentialBucket_1 = require("./rest/SequentialBucket");
123
- Object.defineProperty(exports, "SequentialBucket", { enumerable: true, get: function () { return tslib_1.__importDefault(SequentialBucket_1).default; } });
124
- var SimpleCollection_1 = require("./util/SimpleCollection");
125
- Object.defineProperty(exports, "SimpleCollection", { enumerable: true, get: function () { return tslib_1.__importDefault(SimpleCollection_1).default; } });
126
- var Shard_1 = require("./gateway/Shard");
127
- Object.defineProperty(exports, "Shard", { enumerable: true, get: function () { return tslib_1.__importDefault(Shard_1).default; } });
128
- var ShardManager_1 = require("./gateway/ShardManager");
129
- Object.defineProperty(exports, "ShardManager", { enumerable: true, get: function () { return tslib_1.__importDefault(ShardManager_1).default; } });
130
- var StageChannel_1 = require("./structures/StageChannel");
131
- Object.defineProperty(exports, "StageChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(StageChannel_1).default; } });
132
- var StageInstance_1 = require("./structures/StageInstance");
133
- Object.defineProperty(exports, "StageInstance", { enumerable: true, get: function () { return tslib_1.__importDefault(StageInstance_1).default; } });
134
- var Team_1 = require("./structures/Team");
135
- Object.defineProperty(exports, "Team", { enumerable: true, get: function () { return tslib_1.__importDefault(Team_1).default; } });
136
- var TestEntitlement_1 = require("./structures/TestEntitlement");
137
- Object.defineProperty(exports, "TestEntitlement", { enumerable: true, get: function () { return tslib_1.__importDefault(TestEntitlement_1).default; } });
138
- var TextableChannel_1 = require("./structures/TextableChannel");
139
- Object.defineProperty(exports, "TextableChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(TextableChannel_1).default; } });
140
- var TextableVoiceChannel_1 = require("./structures/TextableVoiceChannel");
141
- Object.defineProperty(exports, "TextableVoiceChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(TextableVoiceChannel_1).default; } });
142
- var TextChannel_1 = require("./structures/TextChannel");
143
- Object.defineProperty(exports, "TextChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(TextChannel_1).default; } });
144
- var ThreadableChannel_1 = require("./structures/ThreadableChannel");
145
- Object.defineProperty(exports, "ThreadableChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(ThreadableChannel_1).default; } });
146
- var ThreadChannel_1 = require("./structures/ThreadChannel");
147
- Object.defineProperty(exports, "ThreadChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(ThreadChannel_1).default; } });
148
- var ThreadOnlyChannel_1 = require("./structures/ThreadOnlyChannel");
149
- Object.defineProperty(exports, "ThreadOnlyChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(ThreadOnlyChannel_1).default; } });
150
- var TypedCollection_1 = require("./util/TypedCollection");
151
- Object.defineProperty(exports, "TypedCollection", { enumerable: true, get: function () { return tslib_1.__importDefault(TypedCollection_1).default; } });
152
- var TypedEmitter_1 = require("./util/TypedEmitter");
153
- Object.defineProperty(exports, "TypedEmitter", { enumerable: true, get: function () { return tslib_1.__importDefault(TypedEmitter_1).default; } });
154
- var UnavailableGuild_1 = require("./structures/UnavailableGuild");
155
- Object.defineProperty(exports, "UnavailableGuild", { enumerable: true, get: function () { return tslib_1.__importDefault(UnavailableGuild_1).default; } });
156
- var User_1 = require("./structures/User");
157
- Object.defineProperty(exports, "User", { enumerable: true, get: function () { return tslib_1.__importDefault(User_1).default; } });
158
- var Util_1 = require("./util/Util");
159
- Object.defineProperty(exports, "Util", { enumerable: true, get: function () { return tslib_1.__importDefault(Util_1).default; } });
160
- var VoiceChannel_1 = require("./structures/VoiceChannel");
161
- Object.defineProperty(exports, "VoiceChannel", { enumerable: true, get: function () { return tslib_1.__importDefault(VoiceChannel_1).default; } });
162
- var VoiceState_1 = require("./structures/VoiceState");
163
- Object.defineProperty(exports, "VoiceState", { enumerable: true, get: function () { return tslib_1.__importDefault(VoiceState_1).default; } });
164
- var Webhook_1 = require("./structures/Webhook");
165
- Object.defineProperty(exports, "Webhook", { enumerable: true, get: function () { return tslib_1.__importDefault(Webhook_1).default; } });
166
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFDQSxxRUFBcUU7QUFDckUsZ0RBQTBEO0FBQWpELDJIQUFBLE9BQU8sT0FBVztBQUMzQix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