mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
fix(HTTPError): the path property should actually be the path
This commit is contained in:
@@ -153,7 +153,7 @@ class RequestHandler {
|
|||||||
// Retry the specified number of times for possible serverside issues
|
// Retry the specified number of times for possible serverside issues
|
||||||
if (item.retries === this.manager.client.options.retryLimit) {
|
if (item.retries === this.manager.client.options.retryLimit) {
|
||||||
return reject(
|
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 {
|
} else {
|
||||||
item.retries++;
|
item.retries++;
|
||||||
@@ -170,7 +170,7 @@ class RequestHandler {
|
|||||||
return null;
|
return null;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return reject(
|
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)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user