Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- activityTypeId :: ActivityType -> Int
- data UpdateStatusType
- statusString :: UpdateStatusType -> Text
Documentation
data GatewayReceivable Source #
Represents data sent and received with Discord servers
Dispatch Event Integer | |
HeartbeatRequest Integer | |
Reconnect | |
InvalidSession Bool | |
Hello Int | |
HeartbeatAck | |
ParseError Text |
Instances
Eq GatewayReceivable Source # | |
Defined in Discord.Internal.Types.Gateway (==) :: GatewayReceivable -> GatewayReceivable -> Bool # (/=) :: GatewayReceivable -> GatewayReceivable -> Bool # | |
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 GatewaySendable Source #
Heartbeat Integer | |
Identify Auth Bool Integer (Int, Int) | |
Resume Text Text Integer | |
RequestGuildMembers RequestGuildMembersOpts | |
UpdateStatus UpdateStatusOpts | |
UpdateStatusVoice UpdateStatusVoiceOpts |
Instances
data RequestGuildMembersOpts Source #
Instances
data UpdateStatusVoiceOpts Source #
Instances
Eq UpdateStatusVoiceOpts Source # | |
Defined in Discord.Internal.Types.Gateway (==) :: UpdateStatusVoiceOpts -> UpdateStatusVoiceOpts -> Bool # (/=) :: UpdateStatusVoiceOpts -> UpdateStatusVoiceOpts -> Bool # | |
Ord UpdateStatusVoiceOpts Source # | |
Defined in Discord.Internal.Types.Gateway compare :: UpdateStatusVoiceOpts -> UpdateStatusVoiceOpts -> Ordering # (<) :: UpdateStatusVoiceOpts -> UpdateStatusVoiceOpts -> Bool # (<=) :: UpdateStatusVoiceOpts -> UpdateStatusVoiceOpts -> Bool # (>) :: UpdateStatusVoiceOpts -> UpdateStatusVoiceOpts -> Bool # (>=) :: UpdateStatusVoiceOpts -> UpdateStatusVoiceOpts -> Bool # max :: UpdateStatusVoiceOpts -> UpdateStatusVoiceOpts -> UpdateStatusVoiceOpts # min :: UpdateStatusVoiceOpts -> UpdateStatusVoiceOpts -> UpdateStatusVoiceOpts # | |
Show UpdateStatusVoiceOpts Source # | |
Defined in Discord.Internal.Types.Gateway showsPrec :: Int -> UpdateStatusVoiceOpts -> ShowS # show :: UpdateStatusVoiceOpts -> String # showList :: [UpdateStatusVoiceOpts] -> ShowS # |
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 # | |
Show UpdateStatusOpts Source # | |
Defined in Discord.Internal.Types.Gateway showsPrec :: Int -> UpdateStatusOpts -> ShowS # show :: UpdateStatusOpts -> String # showList :: [UpdateStatusOpts] -> ShowS # |
data ActivityType Source #
Instances
Eq ActivityType Source # | |
Defined in Discord.Internal.Types.Gateway (==) :: ActivityType -> ActivityType -> Bool # (/=) :: ActivityType -> ActivityType -> Bool # | |
Ord ActivityType Source # | |
Defined in Discord.Internal.Types.Gateway compare :: ActivityType -> ActivityType -> Ordering # (<) :: ActivityType -> ActivityType -> Bool # (<=) :: ActivityType -> ActivityType -> Bool # (>) :: ActivityType -> ActivityType -> Bool # (>=) :: ActivityType -> ActivityType -> Bool # max :: ActivityType -> ActivityType -> ActivityType # min :: ActivityType -> ActivityType -> ActivityType # | |
Show ActivityType Source # | |
Defined in Discord.Internal.Types.Gateway showsPrec :: Int -> ActivityType -> ShowS # show :: ActivityType -> String # showList :: [ActivityType] -> ShowS # |
activityTypeId :: ActivityType -> Int Source #
data UpdateStatusType Source #
UpdateStatusOnline | |
UpdateStatusDoNotDisturb | |
UpdateStatusAwayFromKeyboard | |
UpdateStatusInvisibleOffline | |
UpdateStatusOffline |
Instances
statusString :: UpdateStatusType -> Text Source #