| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Calamity.Gateway.Types
Description
Types for shards
Documentation
type ShardC r = Members '[LogEff, AtomicState ShardState, Embed IO, Final IO, Async, MetricEff] r Source #
Constructors
| Discord ReceivedDiscordMessage | |
| Control ControlMessage |
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.26.0-8Rbyh2JfYBvC9UHgZLNZiA" 'False) (C1 ('MetaCons "Discord" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ReceivedDiscordMessage)) :+: C1 ('MetaCons "Control" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ControlMessage))) | |
data ReceivedDiscordMessage Source #
Constructors
| EvtDispatch Int !DispatchData | |
| HeartBeatReq | |
| Reconnect | |
| InvalidSession Bool | |
| Hello Int | |
| HeartBeatAck |
Instances
data SentDiscordMessage Source #
Constructors
| StatusUpdate StatusUpdateData | |
| Identify IdentifyData | |
| HeartBeat (Maybe Int) | |
| VoiceStatusUpdate VoiceState | |
| Resume ResumeData | |
| RequestGuildMembers RequestGuildMembersData |
Instances
data DispatchType Source #
Constructors
Instances
data IdentifyData Source #
Constructors
| IdentifyData | |
Fields
| |
Instances
data StatusUpdateData Source #
Constructors
| StatusUpdateData | |
Instances
data ResumeData Source #
Instances
data RequestGuildMembersData Source #
Constructors
| RequestGuildMembersData | |
Instances
data IdentifyProps Source #
Constructors
| IdentifyProps | |
Instances
| Show IdentifyProps Source # | |
Defined in Calamity.Gateway.Types Methods showsPrec :: Int -> IdentifyProps -> ShowS # show :: IdentifyProps -> String # showList :: [IdentifyProps] -> ShowS # | |
| Generic IdentifyProps Source # | |
Defined in Calamity.Gateway.Types Associated Types type Rep IdentifyProps :: Type -> Type # | |
| ToJSON IdentifyProps Source # | |
Defined in Calamity.Gateway.Types Methods toJSON :: IdentifyProps -> Value # toEncoding :: IdentifyProps -> Encoding # toJSONList :: [IdentifyProps] -> Value # toEncodingList :: [IdentifyProps] -> Encoding # | |
| type Rep IdentifyProps Source # | |
Defined in Calamity.Gateway.Types type Rep IdentifyProps = D1 ('MetaData "IdentifyProps" "Calamity.Gateway.Types" "calamity-0.1.26.0-8Rbyh2JfYBvC9UHgZLNZiA" 'False) (C1 ('MetaCons "IdentifyProps" 'PrefixI 'True) (S1 ('MetaSel ('Just "browser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "device") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) | |
data ControlMessage Source #
Constructors
| RestartShard | |
| ShutDownShard | |
| SendPresence StatusUpdateData |
Instances
| Show ControlMessage Source # | |
Defined in Calamity.Gateway.Types Methods showsPrec :: Int -> ControlMessage -> ShowS # show :: ControlMessage -> String # showList :: [ControlMessage] -> ShowS # | |
| Generic ControlMessage Source # | |
Defined in Calamity.Gateway.Types Associated Types type Rep ControlMessage :: Type -> Type # Methods 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.26.0-8Rbyh2JfYBvC9UHgZLNZiA" '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 'DecidedStrict) (Rec0 StatusUpdateData)))) | |
data ShardFlowControl Source #
Constructors
| ShardFlowRestart | |
| ShardFlowShutDown |
Instances
| Show ShardFlowControl Source # | |
Defined in Calamity.Gateway.Types Methods showsPrec :: Int -> ShardFlowControl -> ShowS # show :: ShardFlowControl -> String # showList :: [ShardFlowControl] -> ShowS # | |
| Generic ShardFlowControl Source # | |
Defined in Calamity.Gateway.Types Associated Types type Rep ShardFlowControl :: Type -> Type # Methods from :: ShardFlowControl -> Rep ShardFlowControl x # to :: Rep ShardFlowControl x -> ShardFlowControl # | |
| TextShow ShardFlowControl Source # | |
Defined in Calamity.Gateway.Types Methods 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 | |
Constructors
| Shard | |
Fields
| |
Instances
data ShardState Source #
Constructors
| ShardState | |