You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

RateLimitData

export declare interface RateLimitData
export declare interface RateLimitData
Data emitted on RESTEvents.RateLimited
global:boolean
Whether the rate limit that was reached was the global limit
hash:string
The bucket hash for this request
limit:number
The amount of requests we can perform before locking requests
majorParameter:string
The major parameter of the routeFor example, in /channels/x, this will be x. If there is no major parameter (e.g: /bot/gateway) this will be global.
method:string
The HTTP method being performed
route:string
The route being hit in this request
timeToReset:number
The time, in milliseconds, until the request-lock is reset
url:string
The full URL for this request