Data emitted on
RESTEvents.RateLimited
The major parameter of the route
For example, in
/channels/x
, this will be x
. If there is no major parameter (e.g: /bot/gateway
) this will be global
.The scope of the rate limit that was hit.
This can be
user
for rate limits that are per client, global
for rate limits that affect all clients or shared
for rate limits that are shared per resource.The time, in milliseconds, that will need to pass before the sublimit lock for the route resets, and requests that fall under a sublimit can be retried
This is only present on certain sublimits, and
0
otherwise