mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
Deprecate all the things
This commit is contained in:
@@ -65,7 +65,7 @@ class SequentialRequestHandler extends RequestHandler {
|
||||
}, Number(res.headers['retry-after']) + this.restManager.client.options.restTimeOffset);
|
||||
if (res.headers['x-ratelimit-global']) this.globalLimit = true;
|
||||
} else {
|
||||
item.reject(err.status === 400 ? new DiscordAPIError(res.body) : err);
|
||||
item.reject(err.status >= 400 && err.status < 500 ? new DiscordAPIError(res.body) : err);
|
||||
resolve(err);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user