mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
parent
97b013de46
commit
69b7d5d58e
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ class SequentialRequestHandler extends RequestHandler {
|
|||
if (res.headers['x-ratelimit-global']) this.globalLimit = true;
|
||||
} else if (err.status >= 500 && err.status < 600) {
|
||||
this.queue.unshift(item);
|
||||
this.restManager.client.setTimeout(resolve, 1e3 + this.client.options.restTimeOffset);
|
||||
this.restManager.client.setTimeout(resolve, 1e3 + this.restManager.client.options.restTimeOffset);
|
||||
} else {
|
||||
item.reject(err.status >= 400 && err.status < 500 ? new DiscordAPIError(res.request.path, res.body) : err);
|
||||
resolve(err);
|
||||
|
|
|
|||
Loading…
Reference in a new issue