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.5.0-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
parseDispatchData :: DispatchType -> Value -> Parser DispatchData Source #
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 ShardException Source #
Instances
Show ShardException Source # | |
Defined in Calamity.Gateway.Types showsPrec :: Int -> ShardException -> ShowS # show :: ShardException -> String # showList :: [ShardException] -> ShowS # | |
Exception ShardException Source # | |
Defined in Calamity.Gateway.Types |
Shard | |
|
Instances
data ShardState Source #