calamity-0.1.0.0: A library for writing discord bots

Safe HaskellNone
LanguageHaskell2010

Calamity.Client.Types

Description

Types for the client

Documentation

type family EHType d m where ... Source #

Equations

EHType "ready" m = ReadyData -> m () 
EHType "channelcreate" m = Channel -> m () 
EHType "channelupdate" m = Channel -> Channel -> m () 
EHType "channeldelete" m = Channel -> m () 
EHType "channelpinsupdate" m = Channel -> Maybe UTCTime -> m () 
EHType "guildcreate" m = Guild -> Bool -> m () 
EHType "guildupdate" m = Guild -> Guild -> m () 
EHType "guilddelete" m = Guild -> Bool -> m () 
EHType "guildbanadd" m = Guild -> User -> m () 
EHType "guildbanremove" m = Guild -> User -> m () 
EHType "guildemojisupdate" m = Guild -> [Emoji] -> m () 
EHType "guildintegrationsupdate" m = Guild -> m () 
EHType "guildmemberadd" m = Member -> m () 
EHType "guildmemberremove" m = Member -> m () 
EHType "guildmemberupdate" m = Member -> Member -> m () 
EHType "guildmemberschunk" m = Guild -> [Member] -> m () 
EHType "guildrolecreate" m = Guild -> Role -> m () 
EHType "guildroleupdate" m = Guild -> Role -> Role -> m () 
EHType "guildroledelete" m = Guild -> Role -> m () 
EHType "messagecreate" m = Message -> m () 
EHType "messageupdate" m = Message -> Message -> m () 
EHType "messagedelete" m = Message -> m () 
EHType "messagedeletebulk" m = [Message] -> m () 
EHType "messagereactionadd" m = Message -> Reaction -> m () 
EHType "messagereactionremove" m = Message -> Reaction -> m () 
EHType "messagereactionremoveall" m = Message -> m () 
EHType "typingstart" m = Channel -> Maybe Member -> UnixTimestamp -> m () 
EHType "userupdate" m = User -> User -> m () 
EHType s _ = TypeError (Text "Unknown event name: " :<>: ShowType s) 

type family EHType' d where ... Source #

Equations

EHType' "ready" = Dynamic 
EHType' "channelcreate" = Dynamic 
EHType' "channelupdate" = Dynamic 
EHType' "channeldelete" = Dynamic 
EHType' "channelpinsupdate" = Dynamic 
EHType' "guildcreate" = Dynamic 
EHType' "guildupdate" = Dynamic 
EHType' "guilddelete" = Dynamic 
EHType' "guildbanadd" = Dynamic 
EHType' "guildbanremove" = Dynamic 
EHType' "guildemojisupdate" = Dynamic 
EHType' "guildintegrationsupdate" = Dynamic 
EHType' "guildmemberadd" = Dynamic 
EHType' "guildmemberremove" = Dynamic 
EHType' "guildmemberupdate" = Dynamic 
EHType' "guildmemberschunk" = Dynamic 
EHType' "guildrolecreate" = Dynamic 
EHType' "guildroleupdate" = Dynamic 
EHType' "guildroledelete" = Dynamic 
EHType' "messagecreate" = Dynamic 
EHType' "messageupdate" = Dynamic 
EHType' "messagedelete" = Dynamic 
EHType' "messagedeletebulk" = Dynamic 
EHType' "messagereactionadd" = Dynamic 
EHType' "messagereactionremove" = Dynamic 
EHType' "messagereactionremoveall" = Dynamic 
EHType' "typingstart" = Dynamic 
EHType' "userupdate" = Dynamic 
EHType' s = TypeError (Text "Unknown event name: " :<>: ShowType s) 

newtype EventHandler d Source #

Constructors

EH