Dev (#12)
* health check * Update Dockerfile * simplifying the deployment * Update Bot.js makes the find team command public * test (#9) * Dev (#7) * health check * Update Dockerfile * simplifying the deployment * Dev (#8) * health check * Update Dockerfile * simplifying the deployment * Update Bot.js makes the find team command public * Update PlayerService.js * massive update???? could break stuff * Update Bot.js update
This commit is contained in:
13
node_modules/@discordjs/ws/dist/defaultWorker.js
generated
vendored
13
node_modules/@discordjs/ws/dist/defaultWorker.js
generated
vendored
@@ -280,7 +280,7 @@ var SimpleIdentifyThrottler = class {
|
||||
await state.queue.wait({ signal });
|
||||
try {
|
||||
const diff = state.resetsAt - Date.now();
|
||||
if (diff <= 5e3) {
|
||||
if (diff > 0 && diff <= 5e3) {
|
||||
const time = diff + Math.random() * 1500;
|
||||
await (0, import_promises.setTimeout)(time);
|
||||
}
|
||||
@@ -299,7 +299,7 @@ var DefaultWebSocketManagerOptions = {
|
||||
const info = await manager.fetchGatewayInformation();
|
||||
return new SimpleIdentifyThrottler(info.session_start_limit.max_concurrency);
|
||||
},
|
||||
buildStrategy: (manager) => new SimpleShardingStrategy(manager),
|
||||
buildStrategy: /* @__PURE__ */ __name((manager) => new SimpleShardingStrategy(manager), "buildStrategy"),
|
||||
shardCount: null,
|
||||
shardIds: null,
|
||||
largeThreshold: null,
|
||||
@@ -340,6 +340,7 @@ function getInitialSendRateLimitState() {
|
||||
};
|
||||
}
|
||||
__name(getInitialSendRateLimitState, "getInitialSendRateLimitState");
|
||||
var KnownNetworkErrorCodes = /* @__PURE__ */ new Set(["ECONNRESET", "ECONNREFUSED", "ETIMEDOUT", "EAI_AGAIN"]);
|
||||
|
||||
// src/ws/WebSocketShard.ts
|
||||
var getZlibSync = (0, import_util2.lazy)(async () => import("zlib-sync").then((mod) => mod.default).catch(() => null));
|
||||
@@ -376,7 +377,7 @@ var WebSocketShard = class extends import_async_event_emitter.AsyncEventEmitter
|
||||
lastHeartbeatAt = -1;
|
||||
// Indicates whether the shard has already resolved its original connect() call
|
||||
initialConnectResolved = false;
|
||||
// Indicates if we failed to connect to the ws url (ECONNREFUSED/ECONNRESET)
|
||||
// Indicates if we failed to connect to the ws url
|
||||
failedToConnectDueToNetworkError = false;
|
||||
sendQueue = new import_async_queue2.AsyncQueue();
|
||||
timeoutAbortControllers = new import_collection6.Collection();
|
||||
@@ -824,7 +825,7 @@ var WebSocketShard = class extends import_async_event_emitter.AsyncEventEmitter
|
||||
}
|
||||
}
|
||||
onError(error) {
|
||||
if ("code" in error && ["ECONNRESET", "ECONNREFUSED"].includes(error.code)) {
|
||||
if ("code" in error && KnownNetworkErrorCodes.has(error.code)) {
|
||||
this.debug(["Failed to connect to the gateway URL specified due to a network error"]);
|
||||
this.failedToConnectDueToNetworkError = true;
|
||||
return;
|
||||
@@ -924,9 +925,7 @@ var WebSocketShard = class extends import_async_event_emitter.AsyncEventEmitter
|
||||
}
|
||||
}
|
||||
debug(messages) {
|
||||
const message = `${messages[0]}${messages.length > 1 ? `
|
||||
${messages.slice(1).map((m) => ` ${m}`).join("\n")}` : ""}`;
|
||||
this.emit("debug" /* Debug */, { message });
|
||||
this.emit("debug" /* Debug */, { message: messages.join("\n ") });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
2
node_modules/@discordjs/ws/dist/defaultWorker.js.map
generated
vendored
2
node_modules/@discordjs/ws/dist/defaultWorker.js.map
generated
vendored
File diff suppressed because one or more lines are too long
13
node_modules/@discordjs/ws/dist/defaultWorker.mjs
generated
vendored
13
node_modules/@discordjs/ws/dist/defaultWorker.mjs
generated
vendored
@@ -262,7 +262,7 @@ var SimpleIdentifyThrottler = class {
|
||||
await state.queue.wait({ signal });
|
||||
try {
|
||||
const diff = state.resetsAt - Date.now();
|
||||
if (diff <= 5e3) {
|
||||
if (diff > 0 && diff <= 5e3) {
|
||||
const time = diff + Math.random() * 1500;
|
||||
await sleep(time);
|
||||
}
|
||||
@@ -281,7 +281,7 @@ var DefaultWebSocketManagerOptions = {
|
||||
const info = await manager.fetchGatewayInformation();
|
||||
return new SimpleIdentifyThrottler(info.session_start_limit.max_concurrency);
|
||||
},
|
||||
buildStrategy: (manager) => new SimpleShardingStrategy(manager),
|
||||
buildStrategy: /* @__PURE__ */ __name((manager) => new SimpleShardingStrategy(manager), "buildStrategy"),
|
||||
shardCount: null,
|
||||
shardIds: null,
|
||||
largeThreshold: null,
|
||||
@@ -322,6 +322,7 @@ function getInitialSendRateLimitState() {
|
||||
};
|
||||
}
|
||||
__name(getInitialSendRateLimitState, "getInitialSendRateLimitState");
|
||||
var KnownNetworkErrorCodes = /* @__PURE__ */ new Set(["ECONNRESET", "ECONNREFUSED", "ETIMEDOUT", "EAI_AGAIN"]);
|
||||
|
||||
// src/ws/WebSocketShard.ts
|
||||
var getZlibSync = lazy2(async () => import("zlib-sync").then((mod) => mod.default).catch(() => null));
|
||||
@@ -358,7 +359,7 @@ var WebSocketShard = class extends AsyncEventEmitter {
|
||||
lastHeartbeatAt = -1;
|
||||
// Indicates whether the shard has already resolved its original connect() call
|
||||
initialConnectResolved = false;
|
||||
// Indicates if we failed to connect to the ws url (ECONNREFUSED/ECONNRESET)
|
||||
// Indicates if we failed to connect to the ws url
|
||||
failedToConnectDueToNetworkError = false;
|
||||
sendQueue = new AsyncQueue2();
|
||||
timeoutAbortControllers = new Collection6();
|
||||
@@ -806,7 +807,7 @@ var WebSocketShard = class extends AsyncEventEmitter {
|
||||
}
|
||||
}
|
||||
onError(error) {
|
||||
if ("code" in error && ["ECONNRESET", "ECONNREFUSED"].includes(error.code)) {
|
||||
if ("code" in error && KnownNetworkErrorCodes.has(error.code)) {
|
||||
this.debug(["Failed to connect to the gateway URL specified due to a network error"]);
|
||||
this.failedToConnectDueToNetworkError = true;
|
||||
return;
|
||||
@@ -906,9 +907,7 @@ var WebSocketShard = class extends AsyncEventEmitter {
|
||||
}
|
||||
}
|
||||
debug(messages) {
|
||||
const message = `${messages[0]}${messages.length > 1 ? `
|
||||
${messages.slice(1).map((m) => ` ${m}`).join("\n")}` : ""}`;
|
||||
this.emit("debug" /* Debug */, { message });
|
||||
this.emit("debug" /* Debug */, { message: messages.join("\n ") });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
2
node_modules/@discordjs/ws/dist/defaultWorker.mjs.map
generated
vendored
2
node_modules/@discordjs/ws/dist/defaultWorker.mjs.map
generated
vendored
File diff suppressed because one or more lines are too long
3
node_modules/@discordjs/ws/dist/index.d.mts
generated
vendored
3
node_modules/@discordjs/ws/dist/index.d.mts
generated
vendored
@@ -225,6 +225,7 @@ declare const DefaultWebSocketManagerOptions: {
|
||||
};
|
||||
declare const ImportantGatewayOpcodes: Set<GatewayOpcodes>;
|
||||
declare function getInitialSendRateLimitState(): SendRateLimitState;
|
||||
declare const KnownNetworkErrorCodes: Set<string>;
|
||||
|
||||
/**
|
||||
* Represents a range of shard ids
|
||||
@@ -701,4 +702,4 @@ declare class WorkerBootstrapper {
|
||||
*/
|
||||
declare const version: string;
|
||||
|
||||
export { type BootstrapOptions, CloseCodes, CompressionMethod, type CreateWebSocketManagerOptions, DefaultDeviceProperty, DefaultWebSocketManagerOptions, Encoding, type FetchingStrategyOptions, type IContextFetchingStrategy, type IIdentifyThrottler, type IShardingStrategy, type IdentifyState, ImportantGatewayOpcodes, type ManagerShardEventsMap, type OptionalWebSocketManagerOptions, type RequiredWebSocketManagerOptions, type SendRateLimitState, type SessionInfo, type ShardRange, SimpleContextFetchingStrategy, SimpleIdentifyThrottler, SimpleShardingStrategy, WebSocketManager, type WebSocketManagerOptions, WebSocketShard, type WebSocketShardDestroyOptions, WebSocketShardDestroyRecovery, WebSocketShardEvents, type WebSocketShardEventsMap, WebSocketShardStatus, WorkerBootstrapper, WorkerContextFetchingStrategy, type WorkerData, type WorkerReceivePayload, WorkerReceivePayloadOp, type WorkerSendPayload, WorkerSendPayloadOp, WorkerShardingStrategy, type WorkerShardingStrategyOptions, getInitialSendRateLimitState, managerToFetchingStrategyOptions, version };
|
||||
export { type BootstrapOptions, CloseCodes, CompressionMethod, type CreateWebSocketManagerOptions, DefaultDeviceProperty, DefaultWebSocketManagerOptions, Encoding, type FetchingStrategyOptions, type IContextFetchingStrategy, type IIdentifyThrottler, type IShardingStrategy, type IdentifyState, ImportantGatewayOpcodes, KnownNetworkErrorCodes, type ManagerShardEventsMap, type OptionalWebSocketManagerOptions, type RequiredWebSocketManagerOptions, type SendRateLimitState, type SessionInfo, type ShardRange, SimpleContextFetchingStrategy, SimpleIdentifyThrottler, SimpleShardingStrategy, WebSocketManager, type WebSocketManagerOptions, WebSocketShard, type WebSocketShardDestroyOptions, WebSocketShardDestroyRecovery, WebSocketShardEvents, type WebSocketShardEventsMap, WebSocketShardStatus, WorkerBootstrapper, WorkerContextFetchingStrategy, type WorkerData, type WorkerReceivePayload, WorkerReceivePayloadOp, type WorkerSendPayload, WorkerSendPayloadOp, WorkerShardingStrategy, type WorkerShardingStrategyOptions, getInitialSendRateLimitState, managerToFetchingStrategyOptions, version };
|
||||
|
||||
3
node_modules/@discordjs/ws/dist/index.d.ts
generated
vendored
3
node_modules/@discordjs/ws/dist/index.d.ts
generated
vendored
@@ -225,6 +225,7 @@ declare const DefaultWebSocketManagerOptions: {
|
||||
};
|
||||
declare const ImportantGatewayOpcodes: Set<GatewayOpcodes>;
|
||||
declare function getInitialSendRateLimitState(): SendRateLimitState;
|
||||
declare const KnownNetworkErrorCodes: Set<string>;
|
||||
|
||||
/**
|
||||
* Represents a range of shard ids
|
||||
@@ -701,4 +702,4 @@ declare class WorkerBootstrapper {
|
||||
*/
|
||||
declare const version: string;
|
||||
|
||||
export { type BootstrapOptions, CloseCodes, CompressionMethod, type CreateWebSocketManagerOptions, DefaultDeviceProperty, DefaultWebSocketManagerOptions, Encoding, type FetchingStrategyOptions, type IContextFetchingStrategy, type IIdentifyThrottler, type IShardingStrategy, type IdentifyState, ImportantGatewayOpcodes, type ManagerShardEventsMap, type OptionalWebSocketManagerOptions, type RequiredWebSocketManagerOptions, type SendRateLimitState, type SessionInfo, type ShardRange, SimpleContextFetchingStrategy, SimpleIdentifyThrottler, SimpleShardingStrategy, WebSocketManager, type WebSocketManagerOptions, WebSocketShard, type WebSocketShardDestroyOptions, WebSocketShardDestroyRecovery, WebSocketShardEvents, type WebSocketShardEventsMap, WebSocketShardStatus, WorkerBootstrapper, WorkerContextFetchingStrategy, type WorkerData, type WorkerReceivePayload, WorkerReceivePayloadOp, type WorkerSendPayload, WorkerSendPayloadOp, WorkerShardingStrategy, type WorkerShardingStrategyOptions, getInitialSendRateLimitState, managerToFetchingStrategyOptions, version };
|
||||
export { type BootstrapOptions, CloseCodes, CompressionMethod, type CreateWebSocketManagerOptions, DefaultDeviceProperty, DefaultWebSocketManagerOptions, Encoding, type FetchingStrategyOptions, type IContextFetchingStrategy, type IIdentifyThrottler, type IShardingStrategy, type IdentifyState, ImportantGatewayOpcodes, KnownNetworkErrorCodes, type ManagerShardEventsMap, type OptionalWebSocketManagerOptions, type RequiredWebSocketManagerOptions, type SendRateLimitState, type SessionInfo, type ShardRange, SimpleContextFetchingStrategy, SimpleIdentifyThrottler, SimpleShardingStrategy, WebSocketManager, type WebSocketManagerOptions, WebSocketShard, type WebSocketShardDestroyOptions, WebSocketShardDestroyRecovery, WebSocketShardEvents, type WebSocketShardEventsMap, WebSocketShardStatus, WorkerBootstrapper, WorkerContextFetchingStrategy, type WorkerData, type WorkerReceivePayload, WorkerReceivePayloadOp, type WorkerSendPayload, WorkerSendPayloadOp, WorkerShardingStrategy, type WorkerShardingStrategyOptions, getInitialSendRateLimitState, managerToFetchingStrategyOptions, version };
|
||||
|
||||
19
node_modules/@discordjs/ws/dist/index.js
generated
vendored
19
node_modules/@discordjs/ws/dist/index.js
generated
vendored
@@ -37,6 +37,7 @@ __export(src_exports, {
|
||||
DefaultWebSocketManagerOptions: () => DefaultWebSocketManagerOptions,
|
||||
Encoding: () => Encoding,
|
||||
ImportantGatewayOpcodes: () => ImportantGatewayOpcodes,
|
||||
KnownNetworkErrorCodes: () => KnownNetworkErrorCodes,
|
||||
SimpleContextFetchingStrategy: () => SimpleContextFetchingStrategy,
|
||||
SimpleIdentifyThrottler: () => SimpleIdentifyThrottler,
|
||||
SimpleShardingStrategy: () => SimpleShardingStrategy,
|
||||
@@ -498,7 +499,7 @@ var SimpleIdentifyThrottler = class {
|
||||
await state.queue.wait({ signal });
|
||||
try {
|
||||
const diff = state.resetsAt - Date.now();
|
||||
if (diff <= 5e3) {
|
||||
if (diff > 0 && diff <= 5e3) {
|
||||
const time = diff + Math.random() * 1500;
|
||||
await (0, import_promises.setTimeout)(time);
|
||||
}
|
||||
@@ -518,14 +519,14 @@ var CompressionMethod = /* @__PURE__ */ ((CompressionMethod2) => {
|
||||
CompressionMethod2["ZlibStream"] = "zlib-stream";
|
||||
return CompressionMethod2;
|
||||
})(CompressionMethod || {});
|
||||
var DefaultDeviceProperty = `@discordjs/ws 1.1.1`;
|
||||
var DefaultDeviceProperty = `@discordjs/ws 1.2.3`;
|
||||
var getDefaultSessionStore = (0, import_util.lazy)(() => new import_collection4.Collection());
|
||||
var DefaultWebSocketManagerOptions = {
|
||||
async buildIdentifyThrottler(manager) {
|
||||
const info = await manager.fetchGatewayInformation();
|
||||
return new SimpleIdentifyThrottler(info.session_start_limit.max_concurrency);
|
||||
},
|
||||
buildStrategy: (manager) => new SimpleShardingStrategy(manager),
|
||||
buildStrategy: /* @__PURE__ */ __name((manager) => new SimpleShardingStrategy(manager), "buildStrategy"),
|
||||
shardCount: null,
|
||||
shardIds: null,
|
||||
largeThreshold: null,
|
||||
@@ -566,6 +567,7 @@ function getInitialSendRateLimitState() {
|
||||
};
|
||||
}
|
||||
__name(getInitialSendRateLimitState, "getInitialSendRateLimitState");
|
||||
var KnownNetworkErrorCodes = /* @__PURE__ */ new Set(["ECONNRESET", "ECONNREFUSED", "ETIMEDOUT", "EAI_AGAIN"]);
|
||||
|
||||
// src/ws/WebSocketShard.ts
|
||||
var getZlibSync = (0, import_util2.lazy)(async () => import("zlib-sync").then((mod) => mod.default).catch(() => null));
|
||||
@@ -614,7 +616,7 @@ var WebSocketShard = class extends import_async_event_emitter.AsyncEventEmitter
|
||||
lastHeartbeatAt = -1;
|
||||
// Indicates whether the shard has already resolved its original connect() call
|
||||
initialConnectResolved = false;
|
||||
// Indicates if we failed to connect to the ws url (ECONNREFUSED/ECONNRESET)
|
||||
// Indicates if we failed to connect to the ws url
|
||||
failedToConnectDueToNetworkError = false;
|
||||
sendQueue = new import_async_queue2.AsyncQueue();
|
||||
timeoutAbortControllers = new import_collection5.Collection();
|
||||
@@ -1062,7 +1064,7 @@ var WebSocketShard = class extends import_async_event_emitter.AsyncEventEmitter
|
||||
}
|
||||
}
|
||||
onError(error) {
|
||||
if ("code" in error && ["ECONNRESET", "ECONNREFUSED"].includes(error.code)) {
|
||||
if ("code" in error && KnownNetworkErrorCodes.has(error.code)) {
|
||||
this.debug(["Failed to connect to the gateway URL specified due to a network error"]);
|
||||
this.failedToConnectDueToNetworkError = true;
|
||||
return;
|
||||
@@ -1162,9 +1164,7 @@ var WebSocketShard = class extends import_async_event_emitter.AsyncEventEmitter
|
||||
}
|
||||
}
|
||||
debug(messages) {
|
||||
const message = `${messages[0]}${messages.length > 1 ? `
|
||||
${messages.slice(1).map((m) => ` ${m}`).join("\n")}` : ""}`;
|
||||
this.emit("debug" /* Debug */, { message });
|
||||
this.emit("debug" /* Debug */, { message: messages.join("\n ") });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1476,7 +1476,7 @@ var WebSocketManager = class extends import_async_event_emitter2.AsyncEventEmitt
|
||||
};
|
||||
|
||||
// src/index.ts
|
||||
var version = "1.1.1";
|
||||
var version = "1.2.3";
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
CloseCodes,
|
||||
@@ -1485,6 +1485,7 @@ var version = "1.1.1";
|
||||
DefaultWebSocketManagerOptions,
|
||||
Encoding,
|
||||
ImportantGatewayOpcodes,
|
||||
KnownNetworkErrorCodes,
|
||||
SimpleContextFetchingStrategy,
|
||||
SimpleIdentifyThrottler,
|
||||
SimpleShardingStrategy,
|
||||
|
||||
2
node_modules/@discordjs/ws/dist/index.js.map
generated
vendored
2
node_modules/@discordjs/ws/dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
23
node_modules/@discordjs/ws/dist/index.mjs
generated
vendored
23
node_modules/@discordjs/ws/dist/index.mjs
generated
vendored
@@ -3,12 +3,11 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
||||
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
||||
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
||||
}) : x)(function(x) {
|
||||
if (typeof require !== "undefined")
|
||||
return require.apply(this, arguments);
|
||||
if (typeof require !== "undefined") return require.apply(this, arguments);
|
||||
throw Error('Dynamic require of "' + x + '" is not supported');
|
||||
});
|
||||
|
||||
// ../../node_modules/.pnpm/tsup@8.0.2_@microsoft+api-extractor@7.43.0_@types+node@18.17.9__postcss@8.4.38_ts-node@10.9.1_r3lsnbzmufwa2o72aygj6fd66q/node_modules/tsup/assets/esm_shims.js
|
||||
// ../../node_modules/.pnpm/tsup@8.1.0_@microsoft+api-extractor@7.43.0_@types+node@18.17.9__postcss@8.4.38_ts-node@10.9.1_7cuiaqp5aco2ioxr7mdilx3yqy/node_modules/tsup/assets/esm_shims.js
|
||||
import { fileURLToPath } from "url";
|
||||
import path from "path";
|
||||
var getFilename = /* @__PURE__ */ __name(() => fileURLToPath(import.meta.url), "getFilename");
|
||||
@@ -461,7 +460,7 @@ var SimpleIdentifyThrottler = class {
|
||||
await state.queue.wait({ signal });
|
||||
try {
|
||||
const diff = state.resetsAt - Date.now();
|
||||
if (diff <= 5e3) {
|
||||
if (diff > 0 && diff <= 5e3) {
|
||||
const time = diff + Math.random() * 1500;
|
||||
await sleep(time);
|
||||
}
|
||||
@@ -481,14 +480,14 @@ var CompressionMethod = /* @__PURE__ */ ((CompressionMethod2) => {
|
||||
CompressionMethod2["ZlibStream"] = "zlib-stream";
|
||||
return CompressionMethod2;
|
||||
})(CompressionMethod || {});
|
||||
var DefaultDeviceProperty = `@discordjs/ws 1.1.1`;
|
||||
var DefaultDeviceProperty = `@discordjs/ws 1.2.3`;
|
||||
var getDefaultSessionStore = lazy(() => new Collection4());
|
||||
var DefaultWebSocketManagerOptions = {
|
||||
async buildIdentifyThrottler(manager) {
|
||||
const info = await manager.fetchGatewayInformation();
|
||||
return new SimpleIdentifyThrottler(info.session_start_limit.max_concurrency);
|
||||
},
|
||||
buildStrategy: (manager) => new SimpleShardingStrategy(manager),
|
||||
buildStrategy: /* @__PURE__ */ __name((manager) => new SimpleShardingStrategy(manager), "buildStrategy"),
|
||||
shardCount: null,
|
||||
shardIds: null,
|
||||
largeThreshold: null,
|
||||
@@ -529,6 +528,7 @@ function getInitialSendRateLimitState() {
|
||||
};
|
||||
}
|
||||
__name(getInitialSendRateLimitState, "getInitialSendRateLimitState");
|
||||
var KnownNetworkErrorCodes = /* @__PURE__ */ new Set(["ECONNRESET", "ECONNREFUSED", "ETIMEDOUT", "EAI_AGAIN"]);
|
||||
|
||||
// src/ws/WebSocketShard.ts
|
||||
var getZlibSync = lazy2(async () => import("zlib-sync").then((mod) => mod.default).catch(() => null));
|
||||
@@ -577,7 +577,7 @@ var WebSocketShard = class extends AsyncEventEmitter {
|
||||
lastHeartbeatAt = -1;
|
||||
// Indicates whether the shard has already resolved its original connect() call
|
||||
initialConnectResolved = false;
|
||||
// Indicates if we failed to connect to the ws url (ECONNREFUSED/ECONNRESET)
|
||||
// Indicates if we failed to connect to the ws url
|
||||
failedToConnectDueToNetworkError = false;
|
||||
sendQueue = new AsyncQueue2();
|
||||
timeoutAbortControllers = new Collection5();
|
||||
@@ -1025,7 +1025,7 @@ var WebSocketShard = class extends AsyncEventEmitter {
|
||||
}
|
||||
}
|
||||
onError(error) {
|
||||
if ("code" in error && ["ECONNRESET", "ECONNREFUSED"].includes(error.code)) {
|
||||
if ("code" in error && KnownNetworkErrorCodes.has(error.code)) {
|
||||
this.debug(["Failed to connect to the gateway URL specified due to a network error"]);
|
||||
this.failedToConnectDueToNetworkError = true;
|
||||
return;
|
||||
@@ -1125,9 +1125,7 @@ var WebSocketShard = class extends AsyncEventEmitter {
|
||||
}
|
||||
}
|
||||
debug(messages) {
|
||||
const message = `${messages[0]}${messages.length > 1 ? `
|
||||
${messages.slice(1).map((m) => ` ${m}`).join("\n")}` : ""}`;
|
||||
this.emit("debug" /* Debug */, { message });
|
||||
this.emit("debug" /* Debug */, { message: messages.join("\n ") });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1441,7 +1439,7 @@ var WebSocketManager = class extends AsyncEventEmitter2 {
|
||||
};
|
||||
|
||||
// src/index.ts
|
||||
var version = "1.1.1";
|
||||
var version = "1.2.3";
|
||||
export {
|
||||
CloseCodes,
|
||||
CompressionMethod,
|
||||
@@ -1449,6 +1447,7 @@ export {
|
||||
DefaultWebSocketManagerOptions,
|
||||
Encoding,
|
||||
ImportantGatewayOpcodes,
|
||||
KnownNetworkErrorCodes,
|
||||
SimpleContextFetchingStrategy,
|
||||
SimpleIdentifyThrottler,
|
||||
SimpleShardingStrategy,
|
||||
|
||||
2
node_modules/@discordjs/ws/dist/index.mjs.map
generated
vendored
2
node_modules/@discordjs/ws/dist/index.mjs.map
generated
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user