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