class RateLimitError

implements

RateLimitData

extends

Error
export declare class RateLimitError extends Error implements RateLimitData

Constructors

constructor(
{ timeToReset, limit, method, hash, url, route, majorParameter, global, retryAfter, sublimitTimeout, scope, }: RateLimitData
)

Constructs a new instance of the RateLimitError class

global : boolean

hash : string

limit : number

majorParameter : string

method : string

readonly
name : string

The name of the error

retryAfter : number

route : string

scope : RateLimitData['scope']

sublimitTimeout : number

timeToReset : number

url : string