mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +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 {
|
||||
parseResponse(res).then(data => {
|
||||
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);
|
||||
finish();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue