Document + Debug Websocket

This commit is contained in:
March 7th 2022-04-13 17:51:43 +07:00
parent d78a10ed76
commit f9f74cc649
3 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ await groupDM.delete(); // Leave
## Join Guild using Invite
<details>
<summary>Click to show</summary>
<summary><strong>Click to show</strong></summary>
```js
await client.fetchInvite('code').then(async invite => {
@ -73,7 +73,7 @@ await client.fetchInvite('code').then(async invite => {
## Set Community
<details>
<summary>Click to show</summary>
<summary><strong>Click to show</strong></summary>
```js
await guild.setCommunity(stats: boolean, publicUpdatesChannel: TextChannelResolvable, rulesChannel: TextChannelResolvable, reason?: string): Promise<Guild>;

View File

@ -202,7 +202,7 @@ And you can change the status 5 times every 20 seconds!
## User & ClientUser Method
<details>
<summary>Click to show</summary>
<summary><strong>Click to show</strong></summary>
```js
// HypeSquad

View File

@ -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);
}