Update
This commit is contained in:
23
node_modules/@discordjs/util/dist/index.js
generated
vendored
23
node_modules/@discordjs/util/dist/index.js
generated
vendored
@@ -19,8 +19,9 @@ var __copyProps = (to, from, except, desc) => {
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// src/index.ts
|
||||
var src_exports = {};
|
||||
__export(src_exports, {
|
||||
var index_exports = {};
|
||||
__export(index_exports, {
|
||||
GatewayRateLimitError: () => GatewayRateLimitError,
|
||||
calculateShardId: () => calculateShardId,
|
||||
getUserAgentAppendix: () => getUserAgentAppendix,
|
||||
isEquatable: () => isEquatable,
|
||||
@@ -31,7 +32,7 @@ __export(src_exports, {
|
||||
shouldUseGlobalFetchAndWebSocket: () => shouldUseGlobalFetchAndWebSocket,
|
||||
version: () => version
|
||||
});
|
||||
module.exports = __toCommonJS(src_exports);
|
||||
module.exports = __toCommonJS(index_exports);
|
||||
|
||||
// src/functions/lazy.ts
|
||||
function lazy(cb) {
|
||||
@@ -127,10 +128,24 @@ function isEquatable(maybeEquatable) {
|
||||
}
|
||||
__name(isEquatable, "isEquatable");
|
||||
|
||||
// src/gatewayRateLimitError.ts
|
||||
var GatewayRateLimitError = class _GatewayRateLimitError extends Error {
|
||||
constructor(data, payload) {
|
||||
super(`Request with opcode ${data.opcode} was rate limited. Retry after ${data.retry_after} seconds.`);
|
||||
this.data = data;
|
||||
this.payload = payload;
|
||||
}
|
||||
static {
|
||||
__name(this, "GatewayRateLimitError");
|
||||
}
|
||||
name = _GatewayRateLimitError.name;
|
||||
};
|
||||
|
||||
// src/index.ts
|
||||
var version = "1.1.1";
|
||||
var version = "1.2.0";
|
||||
// Annotate the CommonJS export names for ESM import in node:
|
||||
0 && (module.exports = {
|
||||
GatewayRateLimitError,
|
||||
calculateShardId,
|
||||
getUserAgentAppendix,
|
||||
isEquatable,
|
||||
|
||||
Reference in New Issue
Block a user