From 23e183a9ac7aaa3bca2bc4eb8634d1738ec34a26 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sat, 18 Jun 2022 17:42:30 +0100 Subject: [PATCH] fix(WebSocketShard): Disconnected casing (#8117) --- packages/discord.js/src/client/websocket/WebSocketShard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/discord.js/src/client/websocket/WebSocketShard.js b/packages/discord.js/src/client/websocket/WebSocketShard.js index 756cd08ef..7e822caf6 100644 --- a/packages/discord.js/src/client/websocket/WebSocketShard.js +++ b/packages/discord.js/src/client/websocket/WebSocketShard.js @@ -368,7 +368,7 @@ class WebSocketShard extends EventEmitter { this.setWsCloseTimeout(-1); // If we still have a connection object, clean up its listeners if (this.connection) this._cleanupConnection(); - this.status = Status.DISCONNECTED; + this.status = Status.Disconnected; this.emitClose(event); } @@ -833,8 +833,8 @@ class WebSocketShard extends EventEmitter { // Step 2: Null the connection object this.connection = null; - // Step 3: Set the shard status to DISCONNECTED - this.status = Status.DISCONNECTED; + // Step 3: Set the shard status to disconnected + this.status = Status.Disconnected; // Step 4: Cache the old sequence (use to attempt a resume) if (this.sequence !== -1) this.closeSequence = this.sequence;