calamity-0.1.6.2: A library for writing discord bots
Safe HaskellNone
LanguageHaskell2010

Calamity.Client.Types

Description

Types for the client

Synopsis

Documentation

data Client Source #

Constructors

Client 

Fields

Instances

Instances details
Generic Client Source # 
Instance details

Defined in Calamity.Client.Types

Associated Types

type Rep Client :: Type -> Type #

Methods

from :: Client -> Rep Client x #

to :: Rep Client x -> Client #

type Rep Client Source # 
Instance details

Defined in Calamity.Client.Types

type BotC r = (Members '[LogEff, MetricEff, CacheEff, Reader Client, AtomicState EventHandlers, Embed IO, Final IO, Async] r, Typeable r) Source #

type SetupEff r = Sem (LogEff ': (Reader Client ': (AtomicState EventHandlers ': (Async ': r)))) () Source #

type family EHType (d :: EventType) m where ... Source #

Equations

EHType 'ReadyEvt m = ReadyData -> m () 
EHType 'ChannelCreateEvt m = Channel -> m () 
EHType 'ChannelUpdateEvt m = Channel -> Channel -> m () 
EHType 'ChannelDeleteEvt m = Channel -> m () 
EHType 'ChannelpinsUpdateEvt m = Channel -> Maybe UTCTime -> m () 
EHType 'GuildCreateEvt m = Guild -> Bool -> m () 
EHType 'GuildUpdateEvt m = Guild -> Guild -> m () 
EHType 'GuildDeleteEvt m = Guild -> Bool -> m () 
EHType 'GuildBanAddEvt m = Guild -> User -> m () 
EHType 'GuildBanRemoveEvt m = Guild -> User -> m () 
EHType 'GuildEmojisUpdateEvt m = Guild -> [Emoji] -> m () 
EHType 'GuildIntegrationsUpdateEvt m = Guild -> m () 
EHType 'GuildMemberAddEvt m = Member -> m () 
EHType 'GuildMemberRemoveEvt m = Member -> m () 
EHType 'GuildMemberUpdateEvt m = Member -> Member -> m () 
EHType 'GuildMembersChunkEvt m = Guild -> [Member] -> m () 
EHType 'GuildRoleCreateEvt m = Guild -> Role -> m () 
EHType 'GuildRoleUpdateEvt m = Guild -> Role -> Role -> m () 
EHType 'GuildRoleDeleteEvt m = Guild -> Role -> m () 
EHType 'MessageCreateEvt m = Message -> m () 
EHType 'MessageUpdateEvt m = Message -> Message -> m () 
EHType 'MessageDeleteEvt m = Message -> m () 
EHType 'MessageDeleteBulkEvt m = [Message] -> m () 
EHType 'MessageReactionAddEvt m = Message -> Reaction -> m () 
EHType 'MessageReactionRemoveEvt m = Message -> Reaction -> m () 
EHType 'MessageReactionRemoveAllEvt m = Message -> m () 
EHType 'TypingStartEvt m = Channel -> Maybe Member -> UnixTimestamp -> m () 
EHType 'UserUpdateEvt m = User -> User -> m () 
EHType ('CustomEvt s a) m = a -> m () 

newtype EventHandler t Source #

Constructors

EH 

Fields

Instances

Instances details
Semigroup (EventHandler t) Source # 
Instance details

Defined in Calamity.Client.Types

Monoid (EventHandler t) Source # 
Instance details

Defined in Calamity.Client.Types

class InsertEventHandler a m where Source #

Instances

Instances details
(EHInstanceSelector a ~ flag, InsertEventHandler' flag a m) => InsertEventHandler a m Source # 
Instance details

Defined in Calamity.Client.Types

class GetEventHandlers a m where Source #

Instances

Instances details
(EHInstanceSelector a ~ flag, GetEventHandlers' flag a m) => GetEventHandlers a m Source # 
Instance details

Defined in Calamity.Client.Types