| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Discord.Internal.Types.Events
Description
Data structures pertaining to gateway dispatch Events
Synopsis
- data Event- = Ready Int User [Channel] [GuildUnavailable] Text (Maybe Shard) PartialApplication
- | 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
- | InteractionCreate Interaction
- | UnknownEvent Text Object
 
- data EventInternalParse- = InternalReady Int User [Channel] [GuildUnavailable] Text (Maybe Shard) PartialApplication
- | InternalResumed [Text]
- | InternalChannelCreate Channel
- | InternalChannelUpdate Channel
- | InternalChannelDelete Channel
- | InternalChannelPinsUpdate ChannelId (Maybe UTCTime)
- | InternalGuildCreate Guild GuildInfo
- | InternalGuildUpdate Guild
- | InternalGuildDelete GuildUnavailable
- | InternalGuildBanAdd GuildId User
- | InternalGuildBanRemove GuildId User
- | InternalGuildEmojiUpdate GuildId [Emoji]
- | InternalGuildIntegrationsUpdate GuildId
- | InternalGuildMemberAdd GuildId GuildMember
- | InternalGuildMemberRemove GuildId User
- | InternalGuildMemberUpdate GuildId [RoleId] User (Maybe Text)
- | InternalGuildMemberChunk GuildId [GuildMember]
- | InternalGuildRoleCreate GuildId Role
- | InternalGuildRoleUpdate GuildId Role
- | InternalGuildRoleDelete GuildId RoleId
- | InternalMessageCreate Message
- | InternalMessageUpdate ChannelId MessageId
- | InternalMessageDelete ChannelId MessageId
- | InternalMessageDeleteBulk ChannelId [MessageId]
- | InternalMessageReactionAdd ReactionInfo
- | InternalMessageReactionRemove ReactionInfo
- | InternalMessageReactionRemoveAll ChannelId MessageId
- | InternalMessageReactionRemoveEmoji ReactionRemoveInfo
- | InternalPresenceUpdate PresenceInfo
- | InternalTypingStart TypingInfo
- | InternalUserUpdate User
- | InternalInteractionCreate InternalInteraction
- | InternalUnknownEvent Text Object
 
- data PartialApplication = PartialApplication {}
- data ReactionInfo = ReactionInfo {}
- data ReactionRemoveInfo = ReactionRemoveInfo {}
- data PresenceInfo = PresenceInfo {}
- data TypingInfo = TypingInfo {}
- reparse :: (ToJSON a, FromJSON b) => a -> Parser b
- eventParse :: Text -> Object -> Parser EventInternalParse
Documentation
Represents possible events sent by discord. Detailed information can be found at https://discord.com/developers/docs/topics/gateway.
Constructors
data EventInternalParse Source #
Constructors
Instances
| Eq EventInternalParse Source # | |
| Defined in Discord.Internal.Types.Events Methods (==) :: EventInternalParse -> EventInternalParse -> Bool # (/=) :: EventInternalParse -> EventInternalParse -> Bool # | |
| Read EventInternalParse Source # | |
| Defined in Discord.Internal.Types.Events Methods readsPrec :: Int -> ReadS EventInternalParse # readList :: ReadS [EventInternalParse] # | |
| Show EventInternalParse Source # | |
| Defined in Discord.Internal.Types.Events Methods showsPrec :: Int -> EventInternalParse -> ShowS # show :: EventInternalParse -> String # showList :: [EventInternalParse] -> ShowS # | |
data PartialApplication Source #
Constructors
| PartialApplication | |
| Fields | |
Instances
| Eq PartialApplication Source # | |
| Defined in Discord.Internal.Types.Events Methods (==) :: PartialApplication -> PartialApplication -> Bool # (/=) :: PartialApplication -> PartialApplication -> Bool # | |
| Read PartialApplication Source # | |
| Defined in Discord.Internal.Types.Events Methods readsPrec :: Int -> ReadS PartialApplication # readList :: ReadS [PartialApplication] # | |
| Show PartialApplication Source # | |
| Defined in Discord.Internal.Types.Events Methods showsPrec :: Int -> PartialApplication -> ShowS # show :: PartialApplication -> String # showList :: [PartialApplication] -> ShowS # | |
| FromJSON PartialApplication Source # | |
| Defined in Discord.Internal.Types.Events Methods parseJSON :: Value -> Parser PartialApplication # parseJSONList :: Value -> Parser [PartialApplication] # | |
data ReactionInfo Source #
Constructors
| ReactionInfo | |
| Fields | |
Instances
| Eq ReactionInfo Source # | |
| Defined in Discord.Internal.Types.Events | |
| Ord ReactionInfo Source # | |
| Defined in Discord.Internal.Types.Events Methods compare :: ReactionInfo -> ReactionInfo -> Ordering # (<) :: ReactionInfo -> ReactionInfo -> Bool # (<=) :: ReactionInfo -> ReactionInfo -> Bool # (>) :: ReactionInfo -> ReactionInfo -> Bool # (>=) :: ReactionInfo -> ReactionInfo -> Bool # max :: ReactionInfo -> ReactionInfo -> ReactionInfo # min :: ReactionInfo -> ReactionInfo -> ReactionInfo # | |
| Read ReactionInfo Source # | |
| Defined in Discord.Internal.Types.Events Methods readsPrec :: Int -> ReadS ReactionInfo # readList :: ReadS [ReactionInfo] # | |
| Show ReactionInfo Source # | |
| Defined in Discord.Internal.Types.Events Methods showsPrec :: Int -> ReactionInfo -> ShowS # show :: ReactionInfo -> String # showList :: [ReactionInfo] -> ShowS # | |
| FromJSON ReactionInfo Source # | |
| Defined in Discord.Internal.Types.Events | |
data ReactionRemoveInfo Source #
Constructors
| ReactionRemoveInfo | |
Instances
data PresenceInfo Source #
Constructors
| PresenceInfo | |
| Fields 
 | |
Instances
| Eq PresenceInfo Source # | |
| Defined in Discord.Internal.Types.Events | |
| Ord PresenceInfo Source # | |
| Defined in Discord.Internal.Types.Events Methods compare :: PresenceInfo -> PresenceInfo -> Ordering # (<) :: PresenceInfo -> PresenceInfo -> Bool # (<=) :: PresenceInfo -> PresenceInfo -> Bool # (>) :: PresenceInfo -> PresenceInfo -> Bool # (>=) :: PresenceInfo -> PresenceInfo -> Bool # max :: PresenceInfo -> PresenceInfo -> PresenceInfo # min :: PresenceInfo -> PresenceInfo -> PresenceInfo # | |
| Read PresenceInfo Source # | |
| Defined in Discord.Internal.Types.Events Methods readsPrec :: Int -> ReadS PresenceInfo # readList :: ReadS [PresenceInfo] # | |
| Show PresenceInfo Source # | |
| Defined in Discord.Internal.Types.Events Methods showsPrec :: Int -> PresenceInfo -> ShowS # show :: PresenceInfo -> String # showList :: [PresenceInfo] -> ShowS # | |
| FromJSON PresenceInfo Source # | |
| Defined in Discord.Internal.Types.Events | |
data TypingInfo Source #
Constructors
| TypingInfo | |
| Fields | |
Instances
| Eq TypingInfo Source # | |
| Defined in Discord.Internal.Types.Events | |
| Ord TypingInfo Source # | |
| Defined in Discord.Internal.Types.Events Methods compare :: TypingInfo -> TypingInfo -> Ordering # (<) :: TypingInfo -> TypingInfo -> Bool # (<=) :: TypingInfo -> TypingInfo -> Bool # (>) :: TypingInfo -> TypingInfo -> Bool # (>=) :: TypingInfo -> TypingInfo -> Bool # max :: TypingInfo -> TypingInfo -> TypingInfo # min :: TypingInfo -> TypingInfo -> TypingInfo # | |
| Read TypingInfo Source # | |
| Defined in Discord.Internal.Types.Events Methods readsPrec :: Int -> ReadS TypingInfo # readList :: ReadS [TypingInfo] # readPrec :: ReadPrec TypingInfo # readListPrec :: ReadPrec [TypingInfo] # | |
| Show TypingInfo Source # | |
| Defined in Discord.Internal.Types.Events Methods showsPrec :: Int -> TypingInfo -> ShowS # show :: TypingInfo -> String # showList :: [TypingInfo] -> ShowS # | |
| FromJSON TypingInfo Source # | |
| Defined in Discord.Internal.Types.Events | |
eventParse :: Text -> Object -> Parser EventInternalParse Source #