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.14.4-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 # | |
Generic ControlMessage Source # | |
Defined in Calamity.Gateway.Types type Rep ControlMessage :: Type -> Type # from :: ControlMessage -> Rep ControlMessage x # to :: Rep ControlMessage x -> ControlMessage # | |
type Rep ControlMessage Source # | |
Defined in Calamity.Gateway.Types type Rep ControlMessage = D1 ('MetaData "ControlMessage" "Calamity.Gateway.Types" "calamity-0.1.14.4-inplace" 'False) (C1 ('MetaCons "RestartShard" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ShutDownShard" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SendPresence" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 StatusUpdateData)))) |
data ShardFlowControl Source #
Instances
Show ShardFlowControl Source # | |
Defined in Calamity.Gateway.Types showsPrec :: Int -> ShardFlowControl -> ShowS # show :: ShardFlowControl -> String # showList :: [ShardFlowControl] -> ShowS # | |
Generic ShardFlowControl Source # | |
Defined in Calamity.Gateway.Types type Rep ShardFlowControl :: Type -> Type # from :: ShardFlowControl -> Rep ShardFlowControl x # to :: Rep ShardFlowControl x -> ShardFlowControl # | |
TextShow ShardFlowControl Source # | |
Defined in Calamity.Gateway.Types showbPrec :: Int -> ShardFlowControl -> Builder showb :: ShardFlowControl -> Builder showbList :: [ShardFlowControl] -> Builder showtPrec :: Int -> ShardFlowControl -> Text showt :: ShardFlowControl -> Text showtList :: [ShardFlowControl] -> Text showtlPrec :: Int -> ShardFlowControl -> Text showtl :: ShardFlowControl -> Text showtlList :: [ShardFlowControl] -> Text | |
type Rep ShardFlowControl Source # | |
Defined in Calamity.Gateway.Types |
Shard | |
|
Instances
data ShardState Source #