mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(WebSocketManager): Correct error name (#8138)
This commit is contained in:
@@ -130,7 +130,7 @@ class WebSocketManager extends EventEmitter {
|
||||
* @private
|
||||
*/
|
||||
async connect() {
|
||||
const invalidToken = new Error(ErrorCodes.AuthenticationFailed);
|
||||
const invalidToken = new Error(ErrorCodes.TokenInvalid);
|
||||
const {
|
||||
url: gatewayURL,
|
||||
shards: recommendedShards,
|
||||
|
||||
@@ -160,7 +160,7 @@ const Messages = {
|
||||
};
|
||||
|
||||
// Magic needed by WS
|
||||
Messages.AuthenticationFailed = Messages[DjsErrorCodes.AuthenticationFailed];
|
||||
Messages.AuthenticationFailed = Messages[DjsErrorCodes.TokenInvalid];
|
||||
Messages.InvalidShard = Messages[DjsErrorCodes.ShardingInvalid];
|
||||
Messages.ShardingRequired = Messages[DjsErrorCodes.ShardingRequired];
|
||||
Messages.InvalidIntents = Messages[DjsErrorCodes.InvalidIntents];
|
||||
|
||||
Reference in New Issue
Block a user