| Safe Haskell | None | 
|---|---|
| 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
- gatewayIntentPrecenses :: Bool
- gatewayIntentMessageChanges :: Bool
- gatewayIntentMessageReactions :: Bool
- gatewayIntentMessageTyping :: Bool
- gatewayIntentDirectMessageChanges :: Bool
- gatewayIntentDirectMessageReactions :: Bool
- gatewayIntentDirectMessageTyping :: Bool
 
- compileGatewayIntent :: GatewayIntent -> Int
- data GatewaySendable
- data RequestGuildMembersOpts = RequestGuildMembersOpts {}
- data UpdateStatusVoiceOpts = UpdateStatusVoiceOpts {}
- data UpdateStatusOpts = UpdateStatusOpts {}
- data Activity = Activity {}
- data ActivityType
- activityTypeId :: ActivityType -> Int
- data UpdateStatusType
- statusString :: UpdateStatusType -> Text
Documentation
data GatewayReceivable Source #
Sent by gateway
Constructors
| Dispatch EventInternalParse Integer | |
| HeartbeatRequest Integer | |
| Reconnect | |
| InvalidSession Bool | |
| Hello Integer | |
| HeartbeatAck | |
| ParseError Text | 
Instances
| Eq GatewayReceivable Source # | |
| Defined in Discord.Internal.Types.Gateway Methods (==) :: GatewayReceivable -> GatewayReceivable -> Bool # (/=) :: GatewayReceivable -> GatewayReceivable -> Bool # | |
| 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 # | |
| FromJSON GatewayReceivable Source # | |
| Defined in Discord.Internal.Types.Gateway Methods parseJSON :: Value -> Parser GatewayReceivable # parseJSONList :: Value -> Parser [GatewayReceivable] # | |
data GatewaySendableInternal Source #
Sent to gateway by our library
Instances
data GatewayIntent Source #
Constructors
Instances
data GatewaySendable Source #
Sent to gateway by a user
Constructors
| 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
Constructors
| Activity | |
| Fields 
 | |
data ActivityType Source #
Instances
| Eq ActivityType Source # | |
| Defined in Discord.Internal.Types.Gateway | |
| Ord ActivityType Source # | |
| Defined in Discord.Internal.Types.Gateway Methods compare :: ActivityType -> ActivityType -> Ordering # (<) :: ActivityType -> ActivityType -> Bool # (<=) :: ActivityType -> ActivityType -> Bool # (>) :: ActivityType -> ActivityType -> Bool # (>=) :: ActivityType -> ActivityType -> Bool # max :: ActivityType -> ActivityType -> ActivityType # min :: ActivityType -> ActivityType -> ActivityType # | |
| Read ActivityType Source # | |
| Defined in Discord.Internal.Types.Gateway Methods readsPrec :: Int -> ReadS ActivityType # readList :: ReadS [ActivityType] # | |
| Show ActivityType Source # | |
| Defined in Discord.Internal.Types.Gateway Methods showsPrec :: Int -> ActivityType -> ShowS # show :: ActivityType -> String # showList :: [ActivityType] -> ShowS # | |
activityTypeId :: ActivityType -> Int Source #
data UpdateStatusType Source #
Constructors
| UpdateStatusOnline | |
| UpdateStatusDoNotDisturb | |
| UpdateStatusAwayFromKeyboard | |
| UpdateStatusInvisibleOffline | |
| UpdateStatusOffline | 
Instances
statusString :: UpdateStatusType -> Text Source #