From f9f74cc6497a7ea04f8dbe68d43ccf2aa8fe3f2d Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Wed, 13 Apr 2022 17:51:43 +0700 Subject: [PATCH] Document + Debug Websocket --- Document/Guild.md | 4 ++-- Document/User.md | 2 +- src/client/websocket/WebSocketShard.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Document/Guild.md b/Document/Guild.md index 6aaa4d8..88523f4 100644 --- a/Document/Guild.md +++ b/Document/Guild.md @@ -57,7 +57,7 @@ await groupDM.delete(); // Leave ## Join Guild using Invite
-Click to show +Click to show ```js await client.fetchInvite('code').then(async invite => { @@ -73,7 +73,7 @@ await client.fetchInvite('code').then(async invite => { ## Set Community
-Click to show +Click to show ```js await guild.setCommunity(stats: boolean, publicUpdatesChannel: TextChannelResolvable, rulesChannel: TextChannelResolvable, reason?: string): Promise; diff --git a/Document/User.md b/Document/User.md index 137e079..4d46255 100644 --- a/Document/User.md +++ b/Document/User.md @@ -202,7 +202,7 @@ And you can change the status 5 times every 20 seconds! ## User & ClientUser Method
-Click to show +Click to show ```js // HypeSquad diff --git a/src/client/websocket/WebSocketShard.js b/src/client/websocket/WebSocketShard.js index 979fc27..bab2ba6 100644 --- a/src/client/websocket/WebSocketShard.js +++ b/src/client/websocket/WebSocketShard.js @@ -614,7 +614,7 @@ class WebSocketShard extends EventEmitter { shard: [this.id, Number(client.options.shardCount)], }; - this.debug(`[IDENTIFY] Shard ${this.id}/${client.options.shardCount} with intents: ${d.intents}`); + this.debug(`[IDENTIFY] Shard ${this.id}/${client.options.shardCount} with intents: ${32767} :)`); this.send({ op: Opcodes.IDENTIFY, d }, true); }