Update Bot (j'ai plus le repo sur GitHub)
Qui c'est la conne qui a delete le repo sur GitHub? C'EST MOIIIII
This commit is contained in:
36
node_modules/@discordjs/util/dist/index.d.mts
generated
vendored
36
node_modules/@discordjs/util/dist/index.d.mts
generated
vendored
@@ -1,3 +1,5 @@
|
||||
import { GatewayRateLimitedDispatchData, GatewayOpcodeRateLimitMetadataMap } from 'discord-api-types/v10';
|
||||
|
||||
/**
|
||||
* Represents a type that may or may not be a promise
|
||||
*/
|
||||
@@ -121,6 +123,38 @@ interface Equatable<Value> {
|
||||
*/
|
||||
declare function isEquatable(maybeEquatable: unknown): maybeEquatable is Equatable<unknown>;
|
||||
|
||||
/**
|
||||
* Represents the error thrown when the gateway emits a `RATE_LIMITED` event after a certain request.
|
||||
*/
|
||||
declare class GatewayRateLimitError extends Error {
|
||||
/**
|
||||
* The data associated with the rate limit event
|
||||
*/
|
||||
readonly data: GatewayRateLimitedDispatchData<keyof GatewayOpcodeRateLimitMetadataMap>;
|
||||
/**
|
||||
* The payload data that lead to this rate limit
|
||||
*
|
||||
* @privateRemarks
|
||||
* Too complicated to type properly here (i.e. extract the ['data']
|
||||
* of event payloads that have t = keyof GatewayOpcodeRateLimitMetadataMap)
|
||||
*/
|
||||
readonly payload: unknown;
|
||||
readonly name: string;
|
||||
constructor(
|
||||
/**
|
||||
* The data associated with the rate limit event
|
||||
*/
|
||||
data: GatewayRateLimitedDispatchData<keyof GatewayOpcodeRateLimitMetadataMap>,
|
||||
/**
|
||||
* The payload data that lead to this rate limit
|
||||
*
|
||||
* @privateRemarks
|
||||
* Too complicated to type properly here (i.e. extract the ['data']
|
||||
* of event payloads that have t = keyof GatewayOpcodeRateLimitMetadataMap)
|
||||
*/
|
||||
payload: unknown);
|
||||
}
|
||||
|
||||
/**
|
||||
* The {@link https://github.com/discordjs/discord.js/blob/main/packages/util#readme | @discordjs/util} version
|
||||
* that you are currently using.
|
||||
@@ -129,4 +163,4 @@ declare function isEquatable(maybeEquatable: unknown): maybeEquatable is Equatab
|
||||
*/
|
||||
declare const version: string;
|
||||
|
||||
export { type Awaitable, type Equatable, type JSONEncodable, type RangeOptions, calculateShardId, getUserAgentAppendix, isEquatable, isJSONEncodable, lazy, polyfillDispose, range, shouldUseGlobalFetchAndWebSocket, version };
|
||||
export { type Awaitable, type Equatable, GatewayRateLimitError, type JSONEncodable, type RangeOptions, calculateShardId, getUserAgentAppendix, isEquatable, isJSONEncodable, lazy, polyfillDispose, range, shouldUseGlobalFetchAndWebSocket, version };
|
||||
|
||||
36
node_modules/@discordjs/util/dist/index.d.ts
generated
vendored
36
node_modules/@discordjs/util/dist/index.d.ts
generated
vendored
@@ -1,3 +1,5 @@
|
||||
import { GatewayRateLimitedDispatchData, GatewayOpcodeRateLimitMetadataMap } from 'discord-api-types/v10';
|
||||
|
||||
/**
|
||||
* Represents a type that may or may not be a promise
|
||||
*/
|
||||
@@ -121,6 +123,38 @@ interface Equatable<Value> {
|
||||
*/
|
||||
declare function isEquatable(maybeEquatable: unknown): maybeEquatable is Equatable<unknown>;
|
||||
|
||||
/**
|
||||
* Represents the error thrown when the gateway emits a `RATE_LIMITED` event after a certain request.
|
||||
*/
|
||||
declare class GatewayRateLimitError extends Error {
|
||||
/**
|
||||
* The data associated with the rate limit event
|
||||
*/
|
||||
readonly data: GatewayRateLimitedDispatchData<keyof GatewayOpcodeRateLimitMetadataMap>;
|
||||
/**
|
||||
* The payload data that lead to this rate limit
|
||||
*
|
||||
* @privateRemarks
|
||||
* Too complicated to type properly here (i.e. extract the ['data']
|
||||
* of event payloads that have t = keyof GatewayOpcodeRateLimitMetadataMap)
|
||||
*/
|
||||
readonly payload: unknown;
|
||||
readonly name: string;
|
||||
constructor(
|
||||
/**
|
||||
* The data associated with the rate limit event
|
||||
*/
|
||||
data: GatewayRateLimitedDispatchData<keyof GatewayOpcodeRateLimitMetadataMap>,
|
||||
/**
|
||||
* The payload data that lead to this rate limit
|
||||
*
|
||||
* @privateRemarks
|
||||
* Too complicated to type properly here (i.e. extract the ['data']
|
||||
* of event payloads that have t = keyof GatewayOpcodeRateLimitMetadataMap)
|
||||
*/
|
||||
payload: unknown);
|
||||
}
|
||||
|
||||
/**
|
||||
* The {@link https://github.com/discordjs/discord.js/blob/main/packages/util#readme | @discordjs/util} version
|
||||
* that you are currently using.
|
||||
@@ -129,4 +163,4 @@ declare function isEquatable(maybeEquatable: unknown): maybeEquatable is Equatab
|
||||
*/
|
||||
declare const version: string;
|
||||
|
||||
export { type Awaitable, type Equatable, type JSONEncodable, type RangeOptions, calculateShardId, getUserAgentAppendix, isEquatable, isJSONEncodable, lazy, polyfillDispose, range, shouldUseGlobalFetchAndWebSocket, version };
|
||||
export { type Awaitable, type Equatable, GatewayRateLimitError, type JSONEncodable, type RangeOptions, calculateShardId, getUserAgentAppendix, isEquatable, isJSONEncodable, lazy, polyfillDispose, range, shouldUseGlobalFetchAndWebSocket, version };
|
||||
|
||||
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,
|
||||
|
||||
2
node_modules/@discordjs/util/dist/index.js.map
generated
vendored
2
node_modules/@discordjs/util/dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
16
node_modules/@discordjs/util/dist/index.mjs
generated
vendored
16
node_modules/@discordjs/util/dist/index.mjs
generated
vendored
@@ -95,9 +95,23 @@ 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";
|
||||
export {
|
||||
GatewayRateLimitError,
|
||||
calculateShardId,
|
||||
getUserAgentAppendix,
|
||||
isEquatable,
|
||||
|
||||
2
node_modules/@discordjs/util/dist/index.mjs.map
generated
vendored
2
node_modules/@discordjs/util/dist/index.mjs.map
generated
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user