mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Teensy weensy cleanup
This commit is contained in:
parent
ab30715028
commit
74c3bae506
2 changed files with 2 additions and 6 deletions
|
|
@ -41,9 +41,7 @@ class BurstRequestHandler extends RequestHandler {
|
|||
this.globalLimit = false;
|
||||
this.handle();
|
||||
}, Number(res.headers['retry-after']) + this.restManager.client.options.restTimeOffset);
|
||||
if (res.headers['x-ratelimit-global']) {
|
||||
this.globalLimit = true;
|
||||
}
|
||||
if (res.headers['x-ratelimit-global']) this.globalLimit = true;
|
||||
} else {
|
||||
item.reject(err);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,9 +61,7 @@ class SequentialRequestHandler extends RequestHandler {
|
|||
this.globalLimit = false;
|
||||
resolve();
|
||||
}, Number(res.headers['retry-after']) + this.restManager.client.options.restTimeOffset);
|
||||
if (res.headers['x-ratelimit-global']) {
|
||||
this.globalLimit = true;
|
||||
}
|
||||
if (res.headers['x-ratelimit-global']) this.globalLimit = true;
|
||||
} else {
|
||||
this.queue.shift();
|
||||
this.waiting = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue