Safe Haskell | Safe-Inferred |
---|---|
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
- gatewayIntentPresences :: Bool
- gatewayIntentMessageChanges :: Bool
- gatewayIntentMessageReactions :: Bool
- gatewayIntentMessageTyping :: Bool
- gatewayIntentDirectMessageChanges :: Bool
- gatewayIntentDirectMessageReactions :: Bool
- gatewayIntentDirectMessageTyping :: Bool
- gatewayIntentMessageContent :: Bool
- gatewayIntentAutoModerationConfiguration :: Bool
- gatewayIntentAutoModerationExecution :: 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
Dispatch EventInternalParse Integer | |
HeartbeatRequest Integer | |
Reconnect | |
InvalidSession Bool | |
Hello Integer | |
HeartbeatAck | |
ParseError Text |
Instances
FromJSON GatewayReceivable Source # | |
Defined in Discord.Internal.Types.Gateway | |
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 # | |
Eq GatewayReceivable Source # | |
Defined in Discord.Internal.Types.Gateway (==) :: 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
Instances
data GatewaySendable Source #
Sent to gateway by a user
RequestGuildMembers RequestGuildMembersOpts | |
UpdateStatus UpdateStatusOpts | |
UpdateStatusVoice UpdateStatusVoiceOpts |
Instances
data RequestGuildMembersOpts Source #
Options for RequestGuildMembers
Instances
data UpdateStatusVoiceOpts Source #
Options for UpdateStatusVoice
Instances
data UpdateStatusOpts Source #
Options for UpdateStatus
Presence Update - https://discord.com/developers/docs/topics/gateway-events#update-presence
Instances
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 # | |
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 # |
data UpdateStatusType Source #
Possible values for updateStatusOptsNewStatus
UpdateStatusOnline | |
UpdateStatusDoNotDisturb | |
UpdateStatusAwayFromKeyboard | |
UpdateStatusInvisibleOffline | |
UpdateStatusOffline |
Instances
statusString :: UpdateStatusType -> Text Source #
Converts an UpdateStatusType to a textual representation