mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 09:12:22 +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) {
|
||||
this.queue.unshift(item);
|
||||
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 {
|
||||
item.reject(err.status >= 400 && err.status < 500 ? new DiscordAPIError(res.request.path, res.body) : err);
|
||||
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