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.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 };
|
||||
|
||||
Reference in New Issue
Block a user