mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(RequestHandler): a global timeout implies limited (#3950)
This commit is contained in:
@@ -48,7 +48,7 @@ class RequestHandler {
|
||||
}
|
||||
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user