mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 12:40:50 +00:00
fix(RequestHandler): a global timeout implies limited (#3950)
This commit is contained in:
parent
609a545131
commit
7b38f46caf
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ class RequestHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
get limited() {
|
get limited() {
|
||||||
return (this.manager.globalTimeout || this.remaining <= 0) && Date.now() < this.reset;
|
return Boolean(this.manager.globalTimeout) || (this.remaining <= 0 && Date.now() < this.reset);
|
||||||
}
|
}
|
||||||
|
|
||||||
get _inactive() {
|
get _inactive() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue