mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +00:00
refactor: tidy up _inactive check
This commit is contained in:
parent
b5f37728a7
commit
27a0f48441
1 changed files with 1 additions and 4 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue