Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data structures pertaining to gateway dispatch Event
s
Synopsis
- data Event
- = Ready Int User [Channel] [GuildUnavailable] Text
- | Resumed [Text]
- | ChannelCreate Channel
- | ChannelUpdate Channel
- | ChannelDelete Channel
- | ChannelPinsUpdate ChannelId (Maybe UTCTime)
- | GuildCreate Guild GuildInfo
- | GuildUpdate Guild
- | GuildDelete GuildUnavailable
- | GuildBanAdd GuildId User
- | GuildBanRemove GuildId User
- | GuildEmojiUpdate GuildId [Emoji]
- | GuildIntegrationsUpdate GuildId
- | GuildMemberAdd GuildId GuildMember
- | GuildMemberRemove GuildId User
- | GuildMemberUpdate GuildId [RoleId] User (Maybe Text)
- | GuildMemberChunk GuildId [GuildMember]
- | GuildRoleCreate GuildId Role
- | GuildRoleUpdate GuildId Role
- | GuildRoleDelete GuildId RoleId
- | MessageCreate Message
- | MessageUpdate ChannelId MessageId
- | MessageDelete ChannelId MessageId
- | MessageDeleteBulk ChannelId [MessageId]
- | MessageReactionAdd ReactionInfo
- | MessageReactionRemove ReactionInfo
- | MessageReactionRemoveAll ChannelId MessageId
- | MessageReactionRemoveEmoji ReactionRemoveInfo
- | PresenceUpdate PresenceInfo
- | TypingStart TypingInfo
- | UserUpdate User
- | UnknownEvent Text Object
- data ReactionInfo = ReactionInfo {}
- data ReactionRemoveInfo = ReactionRemoveInfo {}
- data PresenceInfo = PresenceInfo {}
- data TypingInfo = TypingInfo {}
- reparse :: (ToJSON a, FromJSON b) => a -> Parser b
- eventParse :: Text -> Object -> Parser Event
Documentation
Represents possible events sent by discord. Detailed information can be found at https://discordapp.com/developers/docs/topics/gateway.
data ReactionInfo Source #
Instances
Eq ReactionInfo Source # | |
Defined in Discord.Internal.Types.Events (==) :: ReactionInfo -> ReactionInfo -> Bool # (/=) :: ReactionInfo -> ReactionInfo -> Bool # | |
Ord ReactionInfo Source # | |
Defined in Discord.Internal.Types.Events compare :: ReactionInfo -> ReactionInfo -> Ordering # (<) :: ReactionInfo -> ReactionInfo -> Bool # (<=) :: ReactionInfo -> ReactionInfo -> Bool # (>) :: ReactionInfo -> ReactionInfo -> Bool # (>=) :: ReactionInfo -> ReactionInfo -> Bool # max :: ReactionInfo -> ReactionInfo -> ReactionInfo # min :: ReactionInfo -> ReactionInfo -> ReactionInfo # | |
Show ReactionInfo Source # | |
Defined in Discord.Internal.Types.Events showsPrec :: Int -> ReactionInfo -> ShowS # show :: ReactionInfo -> String # showList :: [ReactionInfo] -> ShowS # | |
FromJSON ReactionInfo Source # | |
Defined in Discord.Internal.Types.Events parseJSON :: Value -> Parser ReactionInfo # parseJSONList :: Value -> Parser [ReactionInfo] # |
data ReactionRemoveInfo Source #
Instances
data PresenceInfo Source #
PresenceInfo | |
|
Instances
Eq PresenceInfo Source # | |
Defined in Discord.Internal.Types.Events (==) :: PresenceInfo -> PresenceInfo -> Bool # (/=) :: PresenceInfo -> PresenceInfo -> Bool # | |
Ord PresenceInfo Source # | |
Defined in Discord.Internal.Types.Events compare :: PresenceInfo -> PresenceInfo -> Ordering # (<) :: PresenceInfo -> PresenceInfo -> Bool # (<=) :: PresenceInfo -> PresenceInfo -> Bool # (>) :: PresenceInfo -> PresenceInfo -> Bool # (>=) :: PresenceInfo -> PresenceInfo -> Bool # max :: PresenceInfo -> PresenceInfo -> PresenceInfo # min :: PresenceInfo -> PresenceInfo -> PresenceInfo # | |
Show PresenceInfo Source # | |
Defined in Discord.Internal.Types.Events showsPrec :: Int -> PresenceInfo -> ShowS # show :: PresenceInfo -> String # showList :: [PresenceInfo] -> ShowS # | |
FromJSON PresenceInfo Source # | |
Defined in Discord.Internal.Types.Events parseJSON :: Value -> Parser PresenceInfo # parseJSONList :: Value -> Parser [PresenceInfo] # |
data TypingInfo Source #
Instances
Eq TypingInfo Source # | |
Defined in Discord.Internal.Types.Events (==) :: TypingInfo -> TypingInfo -> Bool # (/=) :: TypingInfo -> TypingInfo -> Bool # | |
Ord TypingInfo Source # | |
Defined in Discord.Internal.Types.Events compare :: TypingInfo -> TypingInfo -> Ordering # (<) :: TypingInfo -> TypingInfo -> Bool # (<=) :: TypingInfo -> TypingInfo -> Bool # (>) :: TypingInfo -> TypingInfo -> Bool # (>=) :: TypingInfo -> TypingInfo -> Bool # max :: TypingInfo -> TypingInfo -> TypingInfo # min :: TypingInfo -> TypingInfo -> TypingInfo # | |
Show TypingInfo Source # | |
Defined in Discord.Internal.Types.Events showsPrec :: Int -> TypingInfo -> ShowS # show :: TypingInfo -> String # showList :: [TypingInfo] -> ShowS # | |
FromJSON TypingInfo Source # | |
Defined in Discord.Internal.Types.Events parseJSON :: Value -> Parser TypingInfo # parseJSONList :: Value -> Parser [TypingInfo] # |