Safe Haskell | None |
---|---|
Language | Haskell2010 |
Types for shards
Documentation
type ShardC r = Members '[LogEff, AtomicState ShardState, Embed IO, Final IO, Async, MetricEff] r Source #
data ReceivedDiscordMessage Source #
Instances
Show ReceivedDiscordMessage Source # | |
Defined in Calamity.Gateway.Types showsPrec :: Int -> ReceivedDiscordMessage -> ShowS # show :: ReceivedDiscordMessage -> String # showList :: [ReceivedDiscordMessage] -> ShowS # | |
FromJSON ReceivedDiscordMessage Source # | |
Defined in Calamity.Gateway.Types |
data SentDiscordMessage Source #
StatusUpdate StatusUpdateData | |
Identify IdentifyData | |
HeartBeat (Maybe Int) | |
VoiceStatusUpdate VoiceState | |
Resume ResumeData | |
RequestGuildMembers RequestGuildMembersData |
Instances
Show SentDiscordMessage Source # | |
Defined in Calamity.Gateway.Types showsPrec :: Int -> SentDiscordMessage -> ShowS # show :: SentDiscordMessage -> String # showList :: [SentDiscordMessage] -> ShowS # | |
ToJSON SentDiscordMessage Source # | |
Defined in Calamity.Gateway.Types toJSON :: SentDiscordMessage -> Value # toEncoding :: SentDiscordMessage -> Encoding # toJSONList :: [SentDiscordMessage] -> Value # toEncodingList :: [SentDiscordMessage] -> Encoding # |
data DispatchType Source #
Instances
data IdentifyData Source #
IdentifyData | |
|
Instances
Show IdentifyData Source # | |
Defined in Calamity.Gateway.Types showsPrec :: Int -> IdentifyData -> ShowS # show :: IdentifyData -> String # showList :: [IdentifyData] -> ShowS # | |
ToJSON IdentifyData Source # | |
Defined in Calamity.Gateway.Types toJSON :: IdentifyData -> Value # toEncoding :: IdentifyData -> Encoding # toJSONList :: [IdentifyData] -> Value # toEncodingList :: [IdentifyData] -> Encoding # | |
CalamityToJSON' IdentifyData Source # | |
Defined in Calamity.Gateway.Types |
data StatusUpdateData Source #
StatusUpdateData | |
|
Instances
Show StatusUpdateData Source # | |
Defined in Calamity.Gateway.Types showsPrec :: Int -> StatusUpdateData -> ShowS # show :: StatusUpdateData -> String # showList :: [StatusUpdateData] -> ShowS # | |
ToJSON StatusUpdateData Source # | |
Defined in Calamity.Gateway.Types toJSON :: StatusUpdateData -> Value # toEncoding :: StatusUpdateData -> Encoding # toJSONList :: [StatusUpdateData] -> Value # toEncodingList :: [StatusUpdateData] -> Encoding # | |
CalamityToJSON' StatusUpdateData Source # | |
Defined in Calamity.Gateway.Types |
data ResumeData Source #
Instances
Show ResumeData Source # | |
Defined in Calamity.Gateway.Types showsPrec :: Int -> ResumeData -> ShowS # show :: ResumeData -> String # showList :: [ResumeData] -> ShowS # | |
ToJSON ResumeData Source # | |
Defined in Calamity.Gateway.Types toJSON :: ResumeData -> Value # toEncoding :: ResumeData -> Encoding # toJSONList :: [ResumeData] -> Value # toEncodingList :: [ResumeData] -> Encoding # | |
CalamityToJSON' ResumeData Source # | |
Defined in Calamity.Gateway.Types |
data RequestGuildMembersData Source #
Instances
Show RequestGuildMembersData Source # | |
Defined in Calamity.Gateway.Types showsPrec :: Int -> RequestGuildMembersData -> ShowS # show :: RequestGuildMembersData -> String # showList :: [RequestGuildMembersData] -> ShowS # | |
ToJSON RequestGuildMembersData Source # | |
Defined in Calamity.Gateway.Types | |
CalamityToJSON' RequestGuildMembersData Source # | |
Defined in Calamity.Gateway.Types |
data IdentifyProps Source #
Instances
Show IdentifyProps Source # | |
Defined in Calamity.Gateway.Types showsPrec :: Int -> IdentifyProps -> ShowS # show :: IdentifyProps -> String # showList :: [IdentifyProps] -> ShowS # | |
ToJSON IdentifyProps Source # | |
Defined in Calamity.Gateway.Types toJSON :: IdentifyProps -> Value # toEncoding :: IdentifyProps -> Encoding # toJSONList :: [IdentifyProps] -> Value # toEncodingList :: [IdentifyProps] -> Encoding # | |
CalamityToJSON' IdentifyProps Source # | |
Defined in Calamity.Gateway.Types |
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
data ShardState Source #