[][src]Module spectacles_model::gateway

Structs representing the various elements of the Discord gateway.

Structs

GatewayBot

Returns useful information about the application from the 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 over the Discord Gateway.

SessionStartLimit

Useful information about a bot's session start limit.

UpdateStatus

A packet sent to indicate a status update.

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.