true
If packets to and from Discord should be compressed.
false
The maximum amount of time in milliseconds to wait for a connection to be established.
30000
The ID of the first shard to run for this client. Mutually exclusive with shardIDs
.
0
If the members of all guilds should be requested. Requires the GUILD_MEMBERS
intent.
false
The time in milliseconds after which the client will consider all guilds to have been received.
2000
The threshold at which guilds are considered "large" (after which offline members will not be loaded).
250
The ID of the last shard to run for this client. Mutually exclusive with shardIDs
.
maxShards - 1
The maximum number of attempts to reconnect.
Infinity
The maximum number of attempts to resume a lost connection.
10
A function to calculate the delay between reconnect attempts.
(lastDelay, attempts) => Math.pow(attempts + 1, 0.7) * 20000
If a check should be made before connecting, which will remove any disallowed intents. This requires making a request to /applications/@me
. Any removed intents will be emitted via the warn
event.
false
If existing voice connections should be populated. This will disconnect connections from other sessions.
false
An array of shard IDs to run for this client. Mutually exclusive with firstShardID
& lastShardID
.
based on firstShardID
& lastShardID
The options to pass to constructed websockets.
If dropped connections should be automatically reconnected.