fix(RequestHandler): DiscordAPIError#path should be the path, not the route

This commit is contained in:
SpaceEEC 2018-08-21 12:05:33 +02:00
parent c62f01f0e4
commit d91deefd79
No known key found for this signature in database
GPG key ID: 8C8A2E338661B871

View file

@ -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();
}