Expand description
Payloads (commands) sent to the gateway.
Structs§
- Command
Payload - The
{"op": …, "d": …}envelope around aGatewayCommand, ready to be serialized. - Gateway
Capabilities - Gateway capabilities
a client opts into with
Identify::capabilities. - Heartbeat
- A Heartbeat
(opcode 1): the last sequence number received, or
Noneif no dispatch has been received yet. - Identify
- An Identify (opcode 2): starts a new session.
- Identify
Properties - The connection properties
sent in
Identify. - Request
Channel Info - Request Channel Info
(opcode 43): asks for ephemeral data of a guild’s channels; it arrives in a
ChannelInfoevent. - Request
Guild Members - Request Guild Members
(opcode 8): asks for members of a guild; they arrive in
GuildMembersChunkevents. - Request
Soundboard Sounds - Request Soundboard Sounds
(opcode 31): asks for the soundboard sounds of guilds; they arrive in
SoundboardSoundsevents. - Resume
- A Resume (opcode 6): continues a disconnected session and replays missed events.
- Update
Presence - Update Presence (opcode 3): sets the bot’s status and activities (5 updates per 20 seconds).
- Update
Voice State - Update Voice State (opcode 4): joins, moves between or leaves voice channels.
Enums§
- Channel
Info Field - A field that
RequestChannelInfocan request.
Traits§
- Gateway
Command - A payload that can be sent to the gateway.