From c8598a36d566b15950dd1ab6ec897a0390025e76 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Wed, 30 Mar 2022 18:27:20 +0700 Subject: [PATCH] 2. Websocket not send Intents https://www.reddit.com/r/Discord_selfbots/comments/tq6dyp/comment/i2fkk55/?utm_source=share&utm_medium=web2x&context=3 --- src/client/websocket/WebSocketShard.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/client/websocket/WebSocketShard.js b/src/client/websocket/WebSocketShard.js index 35174f6..979fc27 100644 --- a/src/client/websocket/WebSocketShard.js +++ b/src/client/websocket/WebSocketShard.js @@ -13,7 +13,7 @@ let zlib; try { zlib = require('zlib-sync'); -} catch {} // eslint-disable-line no-empty +} catch { } // eslint-disable-line no-empty /** * Represents a Shard's WebSocket connection @@ -487,9 +487,8 @@ class WebSocketShard extends EventEmitter { () => { this.debug( `Shard ${hasGuildsIntent ? 'did' : 'will'} not receive any more guild packets` + - `${hasGuildsIntent ? ` in ${waitGuildTimeout} ms` : ''}.\nUnavailable guild count: ${ - this.expectedGuilds.size - }`, + `${hasGuildsIntent ? ` in ${waitGuildTimeout} ms` : ''}.\nUnavailable guild count: ${this.expectedGuilds.size + }`, ); this.readyTimeout = null; @@ -610,7 +609,7 @@ class WebSocketShard extends EventEmitter { // Clone the identify payload and assign the token and shard info const d = { ...client.options.ws, - intents: Intents.resolve(client.options.intents), + // intents: Intents.resolve(client.options.intents), // Remove, Req by dolfies_person [Reddit] token: client.token, shard: [this.id, Number(client.options.shardCount)], };