mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Emergency bug fix
Stopped the client from assuming all errors were 429 errors
This commit is contained in:
@@ -132,7 +132,6 @@ var InternalClient = (function () {
|
||||
return new Promise(function (resolve, reject) {
|
||||
ret.end(function (error, data) {
|
||||
if (error) {
|
||||
error.response.error.status = 429;
|
||||
if (!_this.client.options.rate_limit_as_error && error.response && error.response.error && error.response.error.status && error.response.error.status === 429) {
|
||||
|
||||
if (data.headers["retry-after"] || data.headers["Retry-After"]) {
|
||||
|
||||
Reference in New Issue
Block a user