| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Discord.Internal.Types.Gateway
Description
Data structures needed for interfacing with the Websocket Gateway
Synopsis
- data GatewayReceivable
- data GatewaySendableInternal
- data GatewayIntent = GatewayIntent {
- gatewayIntentGuilds :: Bool
- gatewayIntentMembers :: Bool
- gatewayIntentBans :: Bool
- gatewayIntentEmojis :: Bool
- gatewayIntentIntegrations :: Bool
- gatewayIntentWebhooks :: Bool
- gatewayIntentInvites :: Bool
- gatewayIntentVoiceStates :: Bool
- gatewayIntentPresences :: Bool
- gatewayIntentMessageChanges :: Bool
- gatewayIntentMessageReactions :: Bool
- gatewayIntentMessageTyping :: Bool
- gatewayIntentDirectMessageChanges :: Bool
- gatewayIntentDirectMessageReactions :: Bool
- gatewayIntentDirectMessageTyping :: Bool
- gatewayIntentMessageContent :: Bool
- compileGatewayIntent :: GatewayIntent -> Int
- data GatewaySendable
- data RequestGuildMembersOpts = RequestGuildMembersOpts {}
- data UpdateStatusVoiceOpts = UpdateStatusVoiceOpts {}
- data UpdateStatusOpts = UpdateStatusOpts {}
- data UpdateStatusType
- statusString :: UpdateStatusType -> Text
Documentation
data GatewayReceivable Source #
Messages that can be sent by gateway to the library
Constructors
| Dispatch EventInternalParse Integer | |
| HeartbeatRequest Integer | |
| Reconnect | |
| InvalidSession Bool | |
| Hello Integer | |
| HeartbeatAck | |
| ParseError Text |
Instances
| FromJSON GatewayReceivable Source # | |
Defined in Discord.Internal.Types.Gateway Methods parseJSON :: Value -> Parser GatewayReceivable # parseJSONList :: Value -> Parser [GatewayReceivable] # | |
| Read GatewayReceivable Source # | |
Defined in Discord.Internal.Types.Gateway Methods readsPrec :: Int -> ReadS GatewayReceivable # readList :: ReadS [GatewayReceivable] # | |
| Show GatewayReceivable Source # | |
Defined in Discord.Internal.Types.Gateway Methods showsPrec :: Int -> GatewayReceivable -> ShowS # show :: GatewayReceivable -> String # showList :: [GatewayReceivable] -> ShowS # | |
| Eq GatewayReceivable Source # | |
Defined in Discord.Internal.Types.Gateway Methods (==) :: GatewayReceivable -> GatewayReceivable -> Bool # (/=) :: GatewayReceivable -> GatewayReceivable -> Bool # | |
data GatewaySendableInternal Source #
Sent to gateway by our library
Instances
data GatewayIntent Source #
Gateway intents to subrscribe to
Details of which intent englobs what data is avalilable at the official Discord documentation
Constructors
Instances
data GatewaySendable Source #
Sent to gateway by a user
Constructors
| RequestGuildMembers RequestGuildMembersOpts | |
| UpdateStatus UpdateStatusOpts | |
| UpdateStatusVoice UpdateStatusVoiceOpts |
Instances
data RequestGuildMembersOpts Source #
Options for RequestGuildMembers
Constructors
| RequestGuildMembersOpts | |
Instances
data UpdateStatusVoiceOpts Source #
Options for UpdateStatusVoice
Constructors
| UpdateStatusVoiceOpts | |
Instances
data UpdateStatusOpts Source #
Options for UpdateStatus
Presence Update - https://discord.com/developers/docs/topics/gateway-events#update-presence
Constructors
| UpdateStatusOpts | |
Instances
data UpdateStatusType Source #
Possible values for updateStatusOptsNewStatus
Constructors
| UpdateStatusOnline | |
| UpdateStatusDoNotDisturb | |
| UpdateStatusAwayFromKeyboard | |
| UpdateStatusInvisibleOffline | |
| UpdateStatusOffline |
Instances
statusString :: UpdateStatusType -> Text Source #
Converts an UpdateStatusType to a textual representation