From 9097cafb2e468ffbc7699c43ee3e93904d7b236a Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Tue, 11 Jul 2023 12:51:52 +0700 Subject: [PATCH] fix: ws identify --- src/client/websocket/WebSocketShard.js | 2 ++ src/util/Options.js | 1 + 2 files changed, 3 insertions(+) diff --git a/src/client/websocket/WebSocketShard.js b/src/client/websocket/WebSocketShard.js index d619465..da8fc5c 100644 --- a/src/client/websocket/WebSocketShard.js +++ b/src/client/websocket/WebSocketShard.js @@ -712,6 +712,8 @@ class WebSocketShard extends EventEmitter { token: client.token, }; + delete d.version; + this.debug( `[IDENTIFY] Shard ${this.id}/${client.options.shardCount} with intents: ${Intents.resolve( client.options.intents, diff --git a/src/util/Options.js b/src/util/Options.js index d40c479..d6e0b9f 100644 --- a/src/util/Options.js +++ b/src/util/Options.js @@ -220,6 +220,7 @@ class Options extends null { private_channels_version: '0', api_code_version: 0, }, + version: 9, }, http: { agent: {},