mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
refactor: tidy up _inactive check
This commit is contained in:
@@ -27,10 +27,7 @@ class RequestHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get _inactive() {
|
get _inactive() {
|
||||||
return this.queue.length === 0 &&
|
return this.queue.length === 0 && !this.limited && Date.now() > this.resetTime && this.busy !== true;
|
||||||
!this.limited &&
|
|
||||||
Date.now() > this.resetTime &&
|
|
||||||
(typeof this.busy === 'undefined' || this.busy === false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
execute(item) {
|
execute(item) {
|
||||||
|
|||||||
Reference in New Issue
Block a user