Skip to main content

Module outgoing

Module outgoing 

Source
Expand description

Payloads (commands) sent to the gateway.

Structs§

CommandPayload
The {"op": …, "d": …} envelope around a GatewayCommand, ready to be serialized.
GatewayCapabilities
Gateway capabilities a client opts into with Identify::capabilities.
Heartbeat
A Heartbeat (opcode 1): the last sequence number received, or None if no dispatch has been received yet.
Identify
An Identify (opcode 2): starts a new session.
IdentifyProperties
The connection properties sent in Identify.
RequestChannelInfo
Request Channel Info (opcode 43): asks for ephemeral data of a guild’s channels; it arrives in a ChannelInfo event.
RequestGuildMembers
Request Guild Members (opcode 8): asks for members of a guild; they arrive in GuildMembersChunk events.
RequestSoundboardSounds
Request Soundboard Sounds (opcode 31): asks for the soundboard sounds of guilds; they arrive in SoundboardSounds events.
Resume
A Resume (opcode 6): continues a disconnected session and replays missed events.
UpdatePresence
Update Presence (opcode 3): sets the bot’s status and activities (5 updates per 20 seconds).
UpdateVoiceState
Update Voice State (opcode 4): joins, moves between or leaves voice channels.

Enums§

ChannelInfoField
A field that RequestChannelInfo can request.

Traits§

GatewayCommand
A payload that can be sent to the gateway.