Safe Haskell | None |
---|---|
Language | Haskell2010 |
Discord.Types.Gateway
Description
Data structures needed for interfacing with the Websocket Gateway
- data GatewayReceivable
- data GatewaySendable
- data RequestGuildMembersOpts = RequestGuildMembersOpts {}
- data UpdateStatusVoiceOpts = UpdateStatusVoiceOpts {}
- data UpdateStatusOpts = UpdateStatusOpts {}
- data UpdateStatusTypes
- statusString :: UpdateStatusTypes -> Text
Documentation
data GatewayReceivable Source #
Represents data sent and received with Discord servers
Constructors
Dispatch Event Integer | |
HeartbeatRequest Integer | |
Reconnect | |
InvalidSession Bool | |
Hello Int | |
HeartbeatAck | |
ParseError String |
Instances
data GatewaySendable Source #
Constructors
Heartbeat Integer | |
Identify Auth Bool Integer (Int, Int) | |
Resume Text String Integer | |
RequestGuildMembers RequestGuildMembersOpts | |
UpdateStatus UpdateStatusOpts | |
UpdateStatusVoice UpdateStatusVoiceOpts |
Instances
data RequestGuildMembersOpts Source #
Constructors
RequestGuildMembersOpts | |
data UpdateStatusVoiceOpts Source #
data UpdateStatusOpts Source #
Constructors
UpdateStatusOpts | |
data UpdateStatusTypes Source #
statusString :: UpdateStatusTypes -> Text Source #