mirror of
https://github.com/danbulant/discord.js
synced 2026-07-09 05:00:48 +00:00
Webpack build for branch master: 57b6980313
This commit is contained in:
parent
559426549a
commit
72198a59b9
2 changed files with 4 additions and 1 deletions
|
|
@ -23970,6 +23970,9 @@ class RequestHandler {
|
||||||
if (err.status === 429) {
|
if (err.status === 429) {
|
||||||
this.queue.unshift(item);
|
this.queue.unshift(item);
|
||||||
finish(Number(res.headers['retry-after']) + this.client.options.restTimeOffset);
|
finish(Number(res.headers['retry-after']) + this.client.options.restTimeOffset);
|
||||||
|
} else if (err.status === 500) {
|
||||||
|
this.queue.unshift(item);
|
||||||
|
finish(1e3 + this.client.options.restTimeOffset);
|
||||||
} else {
|
} else {
|
||||||
item.reject(err.status >= 400 && err.status < 500 ? new DiscordAPIError(res.request.path, res.body) : err);
|
item.reject(err.status >= 400 && err.status < 500 ? new DiscordAPIError(res.request.path, res.body) : err);
|
||||||
finish();
|
finish();
|
||||||
|
|
|
||||||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue