Safe Haskell | None |
---|---|
Language | Haskell2010 |
Types for shards
Documentation
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.0.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
Show RequestGuildMembersData Source # | |
Defined in Calamity.Gateway.Types showsPrec :: Int -> RequestGuildMembersData -> ShowS # show :: RequestGuildMembersData -> String # showList :: [RequestGuildMembersData] -> ShowS # | |
Generic RequestGuildMembersData Source # | |
Defined in Calamity.Gateway.Types type Rep RequestGuildMembersData :: Type -> Type # | |
ToJSON RequestGuildMembersData Source # | |
Defined in Calamity.Gateway.Types | |
type Rep RequestGuildMembersData Source # | |
Defined in Calamity.Gateway.Types type Rep RequestGuildMembersData = D1 (MetaData "RequestGuildMembersData" "Calamity.Gateway.Types" "calamity-0.1.0.0-inplace" False) (C1 (MetaCons "RequestGuildMembersData" PrefixI True) (S1 (MetaSel (Just "guildID") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Snowflake Guild)) :*: (S1 (MetaSel (Just "query") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "limit") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Int))))) |
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
Generic Shard Source # | |
type Rep Shard Source # | |
Defined in Calamity.Gateway.Types type Rep Shard = D1 (MetaData "Shard" "Calamity.Gateway.Types" "calamity-0.1.0.0-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 "evtQueue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (TQueue DispatchMessage)) :*: S1 (MetaSel (Just "cmdQueue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (TQueue ControlMessage))) :*: (S1 (MetaSel (Just "shardState") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (TVar ShardState)) :*: S1 (MetaSel (Just "token") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))))) |
data ShardState Source #