Safe Haskell | None |
---|---|
Language | Haskell2010 |
Types for shards
Documentation
type ShardC r = Members '[LogEff, AtomicState ShardState, Embed IO, Final IO, Async, MetricEff] r Source #
Instances
Show ShardMsg Source # | |
Generic ShardMsg Source # | |
type Rep ShardMsg Source # | |
Defined in Calamity.Gateway.Types type Rep ShardMsg = D1 ('MetaData "ShardMsg" "Calamity.Gateway.Types" "calamity-0.1.6.1-inplace" 'False) (C1 ('MetaCons "Discord" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReceivedDiscordMessage)) :+: C1 ('MetaCons "Control" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ControlMessage))) |
data ReceivedDiscordMessage Source #
Instances
data SentDiscordMessage Source #
StatusUpdate StatusUpdateData | |
Identify IdentifyData | |
HeartBeat (Maybe Int) | |
VoiceStatusUpdate VoiceState | |
Resume ResumeData | |
RequestGuildMembers RequestGuildMembersData |
Instances
data DispatchType Source #
Instances
data IdentifyData Source #
IdentifyData | |
|
Instances
data StatusUpdateData Source #
Instances
data ResumeData Source #
Instances
data RequestGuildMembersData Source #
Instances
data IdentifyProps Source #
Instances
data ControlMessage Source #
Instances
Show ControlMessage Source # | |
Defined in Calamity.Gateway.Types showsPrec :: Int -> ControlMessage -> ShowS # show :: ControlMessage -> String # showList :: [ControlMessage] -> ShowS # |
data ShardFlowControl Source #
Instances
Show ShardFlowControl Source # | |
Defined in Calamity.Gateway.Types showsPrec :: Int -> ShardFlowControl -> ShowS # show :: ShardFlowControl -> String # showList :: [ShardFlowControl] -> ShowS # |
Shard | |
|
Instances
Generic Shard Source # | |
type Rep Shard Source # | |
Defined in Calamity.Gateway.Types type Rep Shard = D1 ('MetaData "Shard" "Calamity.Gateway.Types" "calamity-0.1.6.1-inplace" 'False) (C1 ('MetaCons "Shard" 'PrefixI 'True) ((S1 ('MetaSel ('Just "shardID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "shardCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "gateway") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "evtIn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (InChan CalamityEvent)) :*: S1 ('MetaSel ('Just "cmdOut") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (OutChan ControlMessage))) :*: (S1 ('MetaSel ('Just "shardState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (IORef ShardState)) :*: S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))) |
data ShardState Source #