Module gateway

Source
Expand description

Structs representing the various elements of the Discord gateway.

Structs§

GatewayBot
Returns useful information about the application from the gateway.
GatewayBrokerMessage
A message, sent to a message broker, which contains the packet to be sent to the Discord gateway.
HeartbeatPacket
A JSON packet used to send a heartbeat to the gateway.
HelloPacket
A JSON packet which defines the heartbeat the client should adhere to.
IdentifyPacket
Used for identifying a shard with the gateway.
IdentifyProperties
ReadyPacket
The packet received when a client completes a handshake with the Discord gateway. This packet is considered the largest and most complex packet sent.
ReceivePacket
A JSON packet that the client would receive over the Discord gateway.
RequestGuildMembers
A Request guild members packet.
ResumeSessionPacket
A packet used to resume a gateway connection.
ResumedPacket
This packet is received when the client resumes an existing session.
SendPacket
A JSON packet that the client would send to the Discord Gateway.
SessionStartLimit
Useful information about a bot’s session start limit.
UpdateStatus
A packet sent to change the current status of the connected client.
UpdateVoiceState
An Update Voice State packet.

Enums§

CloseCodes
Codes that denote the cause of the gateway closing.
GatewayEvent
An organized list of Discord gateway events.
Opcodes
A set of possible Discord gateway opcodes.

Traits§

SendablePacket
Denotes structs that can be sent to the gateway.