@discordjs/core 3.0.0-pr-11006.1765452229-e636950b2 → 3.0.0-pr-11005.1765454364-f3f6d34e7
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.
- package/dist/http-only.js +1 -1
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +1 -1
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
package/dist/index.js
CHANGED
|
@@ -3156,13 +3156,14 @@ var API = class {
|
|
|
3156
3156
|
};
|
|
3157
3157
|
|
|
3158
3158
|
// src/client.ts
|
|
3159
|
+
var import_node_timers = require("timers");
|
|
3159
3160
|
var import_util = require("@discordjs/util");
|
|
3160
3161
|
var import_ws = require("@discordjs/ws");
|
|
3161
3162
|
var import_snowflake = require("@sapphire/snowflake");
|
|
3162
3163
|
var import_async_event_emitter = require("@vladfrangu/async_event_emitter");
|
|
3163
3164
|
var import_v1019 = require("discord-api-types/v10");
|
|
3164
3165
|
function createTimer(controller, timeout) {
|
|
3165
|
-
return setTimeout(() => controller.abort(), timeout);
|
|
3166
|
+
return (0, import_node_timers.setTimeout)(() => controller.abort(), timeout);
|
|
3166
3167
|
}
|
|
3167
3168
|
__name(createTimer, "createTimer");
|
|
3168
3169
|
var Client = class extends import_async_event_emitter.AsyncEventEmitter {
|
|
@@ -3207,7 +3208,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
|
|
|
3207
3208
|
}, "onRatelimit");
|
|
3208
3209
|
const cleanup = /* @__PURE__ */ __name(() => {
|
|
3209
3210
|
if (timer) {
|
|
3210
|
-
clearTimeout(timer);
|
|
3211
|
+
(0, import_node_timers.clearTimeout)(timer);
|
|
3211
3212
|
}
|
|
3212
3213
|
this.off(import_v1019.GatewayDispatchEvents.RateLimited, onRatelimit);
|
|
3213
3214
|
}, "cleanup");
|
|
@@ -3226,7 +3227,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
|
|
|
3226
3227
|
});
|
|
3227
3228
|
for await (const [{ data }] of iterator) {
|
|
3228
3229
|
if (data.nonce !== nonce) continue;
|
|
3229
|
-
clearTimeout(timer);
|
|
3230
|
+
(0, import_node_timers.clearTimeout)(timer);
|
|
3230
3231
|
timer = void 0;
|
|
3231
3232
|
yield {
|
|
3232
3233
|
members: data.members,
|
|
@@ -3313,7 +3314,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
|
|
|
3313
3314
|
const guildIds = new Set(options.guild_ids);
|
|
3314
3315
|
for await (const [{ data }] of iterator) {
|
|
3315
3316
|
if (!guildIds.has(data.guild_id)) continue;
|
|
3316
|
-
clearTimeout(timer);
|
|
3317
|
+
(0, import_node_timers.clearTimeout)(timer);
|
|
3317
3318
|
timer = void 0;
|
|
3318
3319
|
yield {
|
|
3319
3320
|
guildId: data.guild_id,
|
|
@@ -3330,7 +3331,7 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
|
|
|
3330
3331
|
throw error;
|
|
3331
3332
|
} finally {
|
|
3332
3333
|
if (timer) {
|
|
3333
|
-
clearTimeout(timer);
|
|
3334
|
+
(0, import_node_timers.clearTimeout)(timer);
|
|
3334
3335
|
}
|
|
3335
3336
|
}
|
|
3336
3337
|
}
|
|
@@ -3411,7 +3412,7 @@ __name(withFiles, "withFiles");
|
|
|
3411
3412
|
// src/index.ts
|
|
3412
3413
|
__reExport(index_exports, require("discord-api-types/v10"), module.exports);
|
|
3413
3414
|
var import_util2 = require("@discordjs/util");
|
|
3414
|
-
var version = "3.0.0-pr-
|
|
3415
|
+
var version = "3.0.0-pr-11005.1765454364-f3f6d34e7";
|
|
3415
3416
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3416
3417
|
0 && (module.exports = {
|
|
3417
3418
|
API,
|