Calamity.Gateway.Shard
Description
The shard logic
data Shard Source #
Constructors
Fields
Defined in Calamity.Gateway.Types
Associated Types
type Rep Shard :: Type -> Type #
Methods
from :: Shard -> Rep Shard x #
to :: Rep Shard x -> Shard #
newShard :: Members '[LogEff, MetricEff, Embed IO, Final IO, Async] r => Text -> Int -> Int -> Token -> Maybe StatusUpdateData -> Intents -> InChan CalamityEvent -> Sem r (InChan ControlMessage, Async (Maybe ())) Source #
Creates and launches a shard