mirror of
https://github.com/danbulant/discord.js
synced 2026-05-29 20:30:38 +00:00
fix(HTTPError): the path property should actually be the path
This commit is contained in:
parent
6b9dd13d43
commit
ead99a53b7
1 changed files with 2 additions and 2 deletions
|
|
@ -153,7 +153,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.route)
|
||||
new HTTPError(res.statusText, res.constructor.name, res.status, item.request.method, request.path)
|
||||
);
|
||||
} else {
|
||||
item.retries++;
|
||||
|
|
@ -170,7 +170,7 @@ class RequestHandler {
|
|||
return null;
|
||||
} catch (err) {
|
||||
return reject(
|
||||
new HTTPError(err.message, err.constructor.name, err.status, request.method, request.route)
|
||||
new HTTPError(err.message, err.constructor.name, err.status, request.method, request.path)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue