mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 08:41:29 +00:00
fix(RequestHandler): DiscordAPIError#path should be the path, not the route
This commit is contained in:
parent
c62f01f0e4
commit
d91deefd79
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ class RequestHandler {
|
||||||
} else {
|
} else {
|
||||||
parseResponse(res).then(data => {
|
parseResponse(res).then(data => {
|
||||||
item.reject(res.status >= 400 && res.status < 500 ?
|
item.reject(res.status >= 400 && res.status < 500 ?
|
||||||
new DiscordAPIError(item.request.route, data, item.request.method) : res);
|
new DiscordAPIError(item.request.path, data, item.request.method) : res);
|
||||||
}, item.reject);
|
}, item.reject);
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue