| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Discord.Internal.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 Activity = Activity {}
- data ActivityType
- data UpdateStatusType
- statusString :: UpdateStatusType -> 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 Text |
Instances
| Eq GatewayReceivable Source # | |
Defined in Discord.Internal.Types.Gateway Methods (==) :: GatewayReceivable -> GatewayReceivable -> Bool # (/=) :: GatewayReceivable -> GatewayReceivable -> Bool # | |
| Show GatewayReceivable Source # | |
Defined in Discord.Internal.Types.Gateway Methods showsPrec :: Int -> GatewayReceivable -> ShowS # show :: GatewayReceivable -> String # showList :: [GatewayReceivable] -> ShowS # | |
| FromJSON GatewayReceivable Source # | |
Defined in Discord.Internal.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 Text Integer | |
| RequestGuildMembers RequestGuildMembersOpts | |
| UpdateStatus UpdateStatusOpts | |
| UpdateStatusVoice UpdateStatusVoiceOpts |
Instances
data RequestGuildMembersOpts Source #
Constructors
| RequestGuildMembersOpts | |
Instances
data UpdateStatusVoiceOpts Source #
Constructors
| UpdateStatusVoiceOpts | |
Instances
data UpdateStatusOpts Source #
Constructors
| UpdateStatusOpts | |
Instances
| Eq UpdateStatusOpts Source # | |
Defined in Discord.Internal.Types.Gateway Methods (==) :: UpdateStatusOpts -> UpdateStatusOpts -> Bool # (/=) :: UpdateStatusOpts -> UpdateStatusOpts -> Bool # | |
| Ord UpdateStatusOpts Source # | |
Defined in Discord.Internal.Types.Gateway Methods compare :: UpdateStatusOpts -> UpdateStatusOpts -> Ordering # (<) :: UpdateStatusOpts -> UpdateStatusOpts -> Bool # (<=) :: UpdateStatusOpts -> UpdateStatusOpts -> Bool # (>) :: UpdateStatusOpts -> UpdateStatusOpts -> Bool # (>=) :: UpdateStatusOpts -> UpdateStatusOpts -> Bool # max :: UpdateStatusOpts -> UpdateStatusOpts -> UpdateStatusOpts # min :: UpdateStatusOpts -> UpdateStatusOpts -> UpdateStatusOpts # | |
| Show UpdateStatusOpts Source # | |
Defined in Discord.Internal.Types.Gateway Methods showsPrec :: Int -> UpdateStatusOpts -> ShowS # show :: UpdateStatusOpts -> String # showList :: [UpdateStatusOpts] -> ShowS # | |
Constructors
| Activity | |
Fields
| |
data ActivityType Source #
Instances
data UpdateStatusType Source #
Constructors
| UpdateStatusOnline | |
| UpdateStatusDoNotDisturb | |
| UpdateStatusAwayFromKeyboard | |
| UpdateStatusInvisibleOffline | |
| UpdateStatusOffline |
Instances
statusString :: UpdateStatusType -> Text Source #