Shard class, which provides a wrapper around the DiscordConnector with metadata like the id of the shard.
This class is automatically instantiated by the library and is documented for reference.
Rest
Create a new connection to Discord.
Close the current connection to Discord.
Send an OP 3 PRESENCE_UPDATE to Discord.
Data to send.
Optional
Send an OP 8 REQUEST_GUILD_MEMBERS to Discord.
Send an OP 4 VOICE_STATE_UPDATE to Discord.
Data to send
Create a new Shard.
id of the shard.
Main class used for forwarding events.
Time in ms it took for Discord to ackknowledge an OP 1 HEARTBEAT.
Generated using TypeDoc
Shard class, which provides a wrapper around the DiscordConnector with metadata like the id of the shard.
This class is automatically instantiated by the library and is documented for reference.