RateLimitError
A RateLimitError is thrown when the bot is rate limited by Discord, and you don't have requests set to queue.
Extends
Constructors
Constructor
new RateLimitError(
response
,body
):RateLimitError
Parameters
Parameter | Type |
---|---|
response | Response |
body | { global : boolean ; message : string ; retry_after : number ; } |
body.global | boolean |
body.message | string |
body.retry_after | number |
Returns
RateLimitError
Overrides
Properties
Property | Type | Description | Inherited from |
---|---|---|---|
bucket | null | string | - | - |
discordCode? | number | The Discord error code See https://discord.com/developers/docs/topics/opcodes-and-status-codes#json | DiscordError .discordCode |
errors | TransformedError [] | An array of the errors that were returned by Discord | DiscordError .errors |
rawBody | DiscordRawError | Internal The raw body of the error from Discord | DiscordError .rawBody |
retryAfter | number | - | - |
scope | "user" | "global" | "shared" | - | - |
status | number | The HTTP status code of the response from Discord See https://discord.com/developers/docs/topics/opcodes-and-status-codes#http | DiscordError .status |