| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Discord.Types.Gateway
Description
Data structures needed for interfacing with the Websocket Gateway
Synopsis
- 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
| Show GatewayReceivable Source # | |
Defined in Discord.Types.Gateway Methods showsPrec :: Int -> GatewayReceivable -> ShowS # show :: GatewayReceivable -> String # showList :: [GatewayReceivable] -> ShowS # | |
| FromJSON GatewayReceivable Source # | |
Defined in Discord.Types.Gateway Methods parseJSON :: Value -> Parser GatewayReceivable # parseJSONList :: Value -> Parser [GatewayReceivable] # | |
data GatewaySendable Source #
Constructors
| Heartbeat Integer | |
| Identify Auth Bool Integer (Int, Int) | |
| Resume Text String Integer | |
| RequestGuildMembers RequestGuildMembersOpts | |
| UpdateStatus UpdateStatusOpts | |
| UpdateStatusVoice UpdateStatusVoiceOpts |
Instances
| Show GatewaySendable Source # | |
Defined in Discord.Types.Gateway Methods showsPrec :: Int -> GatewaySendable -> ShowS # show :: GatewaySendable -> String # showList :: [GatewaySendable] -> ShowS # | |
| ToJSON GatewaySendable Source # | |
Defined in Discord.Types.Gateway Methods toJSON :: GatewaySendable -> Value # toEncoding :: GatewaySendable -> Encoding # toJSONList :: [GatewaySendable] -> Value # toEncodingList :: [GatewaySendable] -> Encoding # | |
data RequestGuildMembersOpts Source #
Constructors
| RequestGuildMembersOpts | |
Instances
| Show RequestGuildMembersOpts Source # | |
Defined in Discord.Types.Gateway Methods showsPrec :: Int -> RequestGuildMembersOpts -> ShowS # show :: RequestGuildMembersOpts -> String # showList :: [RequestGuildMembersOpts] -> ShowS # | |
data UpdateStatusVoiceOpts Source #
Constructors
| UpdateStatusVoiceOpts | |
Instances
| Show UpdateStatusVoiceOpts Source # | |
Defined in Discord.Types.Gateway Methods showsPrec :: Int -> UpdateStatusVoiceOpts -> ShowS # show :: UpdateStatusVoiceOpts -> String # showList :: [UpdateStatusVoiceOpts] -> ShowS # | |
data UpdateStatusOpts Source #
Constructors
| UpdateStatusOpts | |
Instances
| Show UpdateStatusOpts Source # | |
Defined in Discord.Types.Gateway Methods showsPrec :: Int -> UpdateStatusOpts -> ShowS # show :: UpdateStatusOpts -> String # showList :: [UpdateStatusOpts] -> ShowS # | |
data UpdateStatusTypes Source #
Constructors
| UpdateStatusOnline | |
| UpdateStatusDoNotDisturb | |
| UpdateStatusAwayFromKeyboard | |
| UpdateStatusInvisibleOffline | |
| UpdateStatusOffline |
Instances
| Show UpdateStatusTypes Source # | |
Defined in Discord.Types.Gateway Methods showsPrec :: Int -> UpdateStatusTypes -> ShowS # show :: UpdateStatusTypes -> String # showList :: [UpdateStatusTypes] -> ShowS # | |
statusString :: UpdateStatusTypes -> Text Source #