oceanic.js 1.10.3-dev.c6c9f52 → 1.10.3-dev.ca8b6e8

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