Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ETFPayloadToMessage ¶
ETFPayloadToMessage converts a specialized etf payload to a websocket message
Types ¶
type ETFPayload ¶
ETFPayload is the interface that a specialized etf api payload conforms to
type HeartbeatPayload ¶
type HeartbeatPayload struct {
Sequence int
}
HeartbeatPayload is the specialized payload for sending "heartbeat" events to the discord gateway websocket
type IdentifyPayload ¶
type IdentifyPayload struct { Token string Properties IdentifyPayloadProperties LargeThreshold int Shard IdentifyPayloadShard Presence IdentifyPayloadPresence }
IdentifyPayload is the specialized payload for sending "Identify" events to the discord gateway websocket
type IdentifyPayloadGame ¶
IdentifyPayloadGame holds the data about the "game" portion of the presence
type IdentifyPayloadPresence ¶
type IdentifyPayloadPresence struct { Game IdentifyPayloadGame Status string Since int AFK bool }
IdentifyPayloadPresence holds the data about the "presence" portion of the identify payload
type IdentifyPayloadProperties ¶
IdentifyPayloadProperties holds the data about the os, etc. of the bot when identifying
type IdentifyPayloadShard ¶
IdentifyPayloadShard holds the data about the shards being identified for
type ResumePayload ¶
ResumePayload is the specialized payload for sending "Resume" events to the discord gateway websocket