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