Carbon
Core/Classes

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

ParameterType
responseResponse
body{ global: boolean; message: string; retry_after: number; }
body.globalboolean
body.messagestring
body.retry_afternumber

Returns

RateLimitError

Overrides

DiscordError.constructor

Properties

PropertyTypeDescriptionInherited from
bucketnull | string--
discordCode?numberThe Discord error code See https://discord.com/developers/docs/topics/opcodes-and-status-codes#jsonDiscordError.discordCode
errorsTransformedError[]An array of the errors that were returned by DiscordDiscordError.errors
rawBodyDiscordRawErrorInternal The raw body of the error from DiscordDiscordError.rawBody
retryAfternumber--
scope"user" | "global" | "shared"--
statusnumberThe HTTP status code of the response from Discord See https://discord.com/developers/docs/topics/opcodes-and-status-codes#httpDiscordError.status

On this page