mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(RequestHandler): DiscordAPIError#path should be the path, not the route
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user