mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix: TOKEN_INVALID error not thrown at login with invalid token (#7630)
This commit is contained in:
@@ -136,7 +136,7 @@ class WebSocketManager extends EventEmitter {
|
||||
shards: recommendedShards,
|
||||
session_start_limit: sessionStartLimit,
|
||||
} = await this.client.rest.get(Routes.gatewayBot()).catch(error => {
|
||||
throw error.httpStatus === 401 ? invalidToken : error;
|
||||
throw error.status === 401 ? invalidToken : error;
|
||||
});
|
||||
|
||||
const { total, remaining } = sessionStartLimit;
|
||||
|
||||
Reference in New Issue
Block a user