Webpack build for branch master: 57b6980313

This commit is contained in:
Travis CI 2017-07-22 21:25:01 +00:00
parent 559426549a
commit 72198a59b9
2 changed files with 4 additions and 1 deletions

View file

@ -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();

File diff suppressed because one or more lines are too long