mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 22:21:17 +00:00
Webpack build for branch rewrite-ratelimit-route-builder: 080996b5a9
This commit is contained in:
parent
7aa076b2f9
commit
991e0d4d78
2 changed files with 4 additions and 4 deletions
|
|
@ -23966,7 +23966,7 @@ module.exports = {
|
|||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = function sequential() {
|
||||
if (this.busy || this.limited) return;
|
||||
if (this.busy || this.limited || this.queue.length === 0) return;
|
||||
this.busy = true;
|
||||
this.execute(this.queue.shift())
|
||||
.then(() => {
|
||||
|
|
@ -23988,7 +23988,7 @@ module.exports = function sequential() {
|
|||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = function burst() {
|
||||
if (this.limited) return;
|
||||
if (this.limited || this.queue.length === 0) return;
|
||||
this.execute(this.queue.shift())
|
||||
.then(this.handle.bind(this))
|
||||
.catch(({ timeout }) => {
|
||||
|
|
@ -24022,7 +24022,7 @@ class RequestHandler {
|
|||
}
|
||||
|
||||
get limited() {
|
||||
return this.queue.length === 0 || this.manager.globallyRateLimited || this.remaining <= 0;
|
||||
return this.manager.globallyRateLimited || this.remaining <= 0;
|
||||
}
|
||||
|
||||
set globallyLimited(limited) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue