| 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.11.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 #
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.11.0-inplace" 'False) (C1 ('MetaCons "IdentifyProps" 'PrefixI 'True) (S1 ('MetaSel ('Just "browser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "device") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (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 # | |
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 # | |
Constructors
| Shard | |
Fields
| |
Instances
data ShardState Source #
Constructors
| ShardState | |