mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
feat: present x-ratelimit-scope for 429s hit (#9973)
* feat: present x-ratelimit-scope for 429s hit * fix: get scope from headers for burst too
This commit is contained in:
@@ -164,6 +164,13 @@ export interface RateLimitData {
|
||||
* The route being hit in this request
|
||||
*/
|
||||
route: string;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
scope: 'global' | 'shared' | 'user';
|
||||
/**
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user