Checks if all shards under this socket match a given state
The state to be checked for
Modifies the presence of the bot
The new presence for the bot
Called when a shard under this socket changes its state. If all shards under this socket now have the same state, a message will be sent to the BotShardManager telling it to emit an event for all shards
The state to be checked for
The state BotShard should be at after sending the message
The event that should be emitted to all shards
Start and connect every bot shard
Stops and disconnects all active shards started by this process
Gateway closure code
Generated using TypeDoc
Creates and manages socket shards