Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- gatewayIntentPrecenses :: 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 #
Sent by gateway
Dispatch EventInternalParse Integer | |
HeartbeatRequest Integer | |
Reconnect | |
InvalidSession Bool | |
Hello Integer | |
HeartbeatAck | |
ParseError Text |
Instances
Eq GatewayReceivable Source # | |
Defined in Discord.Internal.Types.Gateway (==) :: GatewayReceivable -> GatewayReceivable -> Bool # (/=) :: GatewayReceivable -> GatewayReceivable -> Bool # | |
Read GatewayReceivable Source # | |
Defined in Discord.Internal.Types.Gateway | |
Show GatewayReceivable Source # | |
Defined in Discord.Internal.Types.Gateway showsPrec :: Int -> GatewayReceivable -> ShowS # show :: GatewayReceivable -> String # showList :: [GatewayReceivable] -> ShowS # | |
FromJSON GatewayReceivable Source # | |
Defined in Discord.Internal.Types.Gateway parseJSON :: Value -> Parser GatewayReceivable # parseJSONList :: Value -> Parser [GatewayReceivable] # |
data GatewaySendableInternal Source #
Sent to gateway by our library
Instances
data GatewayIntent Source #
Instances
data GatewaySendable Source #
Sent to gateway by a user
RequestGuildMembers RequestGuildMembersOpts | |
UpdateStatus UpdateStatusOpts | |
UpdateStatusVoice UpdateStatusVoiceOpts |
Instances
data RequestGuildMembersOpts Source #
Instances
data UpdateStatusVoiceOpts Source #
Instances
data UpdateStatusOpts Source #
Instances
Eq UpdateStatusOpts Source # | |
Defined in Discord.Internal.Types.Gateway (==) :: UpdateStatusOpts -> UpdateStatusOpts -> Bool # (/=) :: UpdateStatusOpts -> UpdateStatusOpts -> Bool # | |
Ord UpdateStatusOpts Source # | |
Defined in Discord.Internal.Types.Gateway compare :: UpdateStatusOpts -> UpdateStatusOpts -> Ordering # (<) :: UpdateStatusOpts -> UpdateStatusOpts -> Bool # (<=) :: UpdateStatusOpts -> UpdateStatusOpts -> Bool # (>) :: UpdateStatusOpts -> UpdateStatusOpts -> Bool # (>=) :: UpdateStatusOpts -> UpdateStatusOpts -> Bool # max :: UpdateStatusOpts -> UpdateStatusOpts -> UpdateStatusOpts # min :: UpdateStatusOpts -> UpdateStatusOpts -> UpdateStatusOpts # | |
Read UpdateStatusOpts Source # | |
Defined in Discord.Internal.Types.Gateway | |
Show UpdateStatusOpts Source # | |
Defined in Discord.Internal.Types.Gateway showsPrec :: Int -> UpdateStatusOpts -> ShowS # show :: UpdateStatusOpts -> String # showList :: [UpdateStatusOpts] -> ShowS # |
data UpdateStatusType Source #
UpdateStatusOnline | |
UpdateStatusDoNotDisturb | |
UpdateStatusAwayFromKeyboard | |
UpdateStatusInvisibleOffline | |
UpdateStatusOffline |
Instances
statusString :: UpdateStatusType -> Text Source #