mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
@@ -3,10 +3,12 @@ module.exports = function burst() {
|
||||
this.execute(this.queue.shift())
|
||||
.then(this.handle.bind(this))
|
||||
.catch(({ timeout }) => {
|
||||
this.client.setTimeout(() => {
|
||||
this.reset();
|
||||
this.handle();
|
||||
}, timeout);
|
||||
if (timeout) {
|
||||
this.client.setTimeout(() => {
|
||||
this.reset();
|
||||
this.handle();
|
||||
}, timeout);
|
||||
}
|
||||
});
|
||||
this.remaining--;
|
||||
this.handle();
|
||||
|
||||
Reference in New Issue
Block a user