interface RateLimitData
Data emitted on RESTEvents.RateLimited
boolean global :
Whether the rate limit that was reached was the global limit
string hash :
The bucket hash for this request
number limit :
The amount of requests we can perform before locking requests
string majorParameter :
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
.
string method :
The HTTP method being performed
string route :
The route being hit in this request
number timeToReset :
The time, in milliseconds, until the request-lock is reset
string url :
The full URL for this request