calamity-0.11.0.0: A library for writing discord bots in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Calamity.Gateway.DispatchEvents

Description

module containing all dispatch events

Documentation

data CalamityEvent Source #

Constructors

Dispatch 

Fields

forall (a :: Type).Typeable a => Custom a

The data sent to the custom event

ShutDown 

data DispatchData Source #

Instances

Instances details
Generic DispatchData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

Associated Types

type Rep DispatchData :: Type -> Type #

Show DispatchData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

CtorName DispatchData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

type Rep DispatchData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

type Rep DispatchData = D1 ('MetaData "DispatchData" "Calamity.Gateway.DispatchEvents" "calamity-0.11.0.0-inplace" 'False) (((((C1 ('MetaCons "Ready" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ReadyData)) :+: C1 ('MetaCons "Resumed" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ChannelCreate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Channel)) :+: C1 ('MetaCons "ChannelUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Channel)))) :+: ((C1 ('MetaCons "ChannelDelete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Channel)) :+: C1 ('MetaCons "ChannelPinsUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelPinsUpdateData))) :+: (C1 ('MetaCons "GuildCreate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Guild)) :+: (C1 ('MetaCons "GuildUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UpdatedGuild)) :+: C1 ('MetaCons "GuildDelete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UnavailableGuild)))))) :+: (((C1 ('MetaCons "GuildBanAdd" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BanData)) :+: C1 ('MetaCons "GuildBanRemove" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BanData))) :+: (C1 ('MetaCons "GuildEmojisUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GuildEmojisUpdateData)) :+: C1 ('MetaCons "GuildIntegrationsUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GuildIntegrationsUpdateData)))) :+: ((C1 ('MetaCons "GuildMemberAdd" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Snowflake Guild)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Member)) :+: C1 ('MetaCons "GuildMemberRemove" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GuildMemberRemoveData))) :+: (C1 ('MetaCons "GuildMemberUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GuildMemberUpdateData)) :+: (C1 ('MetaCons "GuildMembersChunk" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GuildMembersChunkData)) :+: C1 ('MetaCons "GuildRoleCreate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GuildRoleData))))))) :+: ((((C1 ('MetaCons "GuildRoleUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GuildRoleData)) :+: C1 ('MetaCons "GuildRoleDelete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GuildRoleDeleteData))) :+: (C1 ('MetaCons "InviteCreate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 InviteCreateData)) :+: C1 ('MetaCons "InviteDelete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 InviteDeleteData)))) :+: ((C1 ('MetaCons "MessageCreate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Message) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe User)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Member)))) :+: C1 ('MetaCons "MessageUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 UpdatedMessage) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe User)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Member))))) :+: (C1 ('MetaCons "MessageDelete" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MessageDeleteData)) :+: (C1 ('MetaCons "MessageDeleteBulk" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MessageDeleteBulkData)) :+: C1 ('MetaCons "MessageReactionAdd" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ReactionEvtData)))))) :+: (((C1 ('MetaCons "MessageReactionRemove" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ReactionEvtData)) :+: C1 ('MetaCons "MessageReactionRemoveAll" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MessageReactionRemoveAllData))) :+: (C1 ('MetaCons "PresenceUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 PresenceUpdateData)) :+: (C1 ('MetaCons "TypingStart" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TypingStartData)) :+: C1 ('MetaCons "UserUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 User))))) :+: ((C1 ('MetaCons "VoiceStateUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 VoiceState)) :+: C1 ('MetaCons "VoiceServerUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 VoiceServerUpdateData))) :+: (C1 ('MetaCons "WebhooksUpdate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 WebhooksUpdateData)) :+: (C1 ('MetaCons "InteractionCreate" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Interaction)) :+: C1 ('MetaCons "UNHANDLED" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))))

data ReadyData Source #

Constructors

ReadyData 

Instances

Instances details
FromJSON ReadyData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

Show ReadyData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

(k ~ A_Lens, a ~ [UnavailableGuild], b ~ [UnavailableGuild]) => LabelOptic "guilds" k ReadyData ReadyData a b Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "sessionID" k ReadyData ReadyData a b Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

(k ~ A_Lens, a ~ User, b ~ User) => LabelOptic "user" k ReadyData ReadyData a b Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

(k ~ A_Lens, a ~ Integer, b ~ Integer) => LabelOptic "v" k ReadyData ReadyData a b Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

data ReactionEvtData Source #

Instances

Instances details
FromJSON ReactionEvtData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

Show ReactionEvtData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

Eq ReactionEvtData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

HasID Channel ReactionEvtData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

HasID Message ReactionEvtData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

HasID User ReactionEvtData Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

(k ~ A_Lens, a ~ Snowflake Channel, b ~ Snowflake Channel) => LabelOptic "channelID" k ReactionEvtData ReactionEvtData a b Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

(k ~ A_Lens, a ~ RawEmoji, b ~ RawEmoji) => LabelOptic "emoji" k ReactionEvtData ReactionEvtData a b Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

(k ~ A_Lens, a ~ Maybe (Snowflake Guild), b ~ Maybe (Snowflake Guild)) => LabelOptic "guildID" k ReactionEvtData ReactionEvtData a b Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

(k ~ A_Lens, a ~ Snowflake Message, b ~ Snowflake Message) => LabelOptic "messageID" k ReactionEvtData ReactionEvtData a b Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents

(k ~ A_Lens, a ~ Snowflake User, b ~ Snowflake User) => LabelOptic "userID" k ReactionEvtData ReactionEvtData a b Source # 
Instance details

Defined in Calamity.Gateway.DispatchEvents