mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
chore(deps): update deps and fix lint (#3833)
This commit is contained in:
@@ -103,7 +103,7 @@ class RequestHandler {
|
||||
// NodeFetch error expected for all "operational" errors, such as 500 status code
|
||||
this.busy = false;
|
||||
return reject(
|
||||
new HTTPError(error.message, error.constructor.name, error.status, request.method, request.path)
|
||||
new HTTPError(error.message, error.constructor.name, error.status, request.method, request.path),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ class RequestHandler {
|
||||
// Retry the specified number of times for possible serverside issues
|
||||
if (item.retries === this.manager.client.options.retryLimit) {
|
||||
return reject(
|
||||
new HTTPError(res.statusText, res.constructor.name, res.status, item.request.method, request.path)
|
||||
new HTTPError(res.statusText, res.constructor.name, res.status, item.request.method, request.path),
|
||||
);
|
||||
} else {
|
||||
item.retries++;
|
||||
@@ -172,7 +172,7 @@ class RequestHandler {
|
||||
return null;
|
||||
} catch (err) {
|
||||
return reject(
|
||||
new HTTPError(err.message, err.constructor.name, err.status, request.method, request.path)
|
||||
new HTTPError(err.message, err.constructor.name, err.status, request.method, request.path),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user