calamity-0.1.6.1: A library for writing discord bots
Safe HaskellNone
LanguageHaskell2010

Calamity.Gateway.Shard

Description

The shard logic

Synopsis

Documentation

data Shard Source #

Constructors

Shard 

Instances

Instances details
Generic Shard Source # 
Instance details

Defined in Calamity.Gateway.Types

Associated Types

type Rep Shard :: Type -> Type #

Methods

from :: Shard -> Rep Shard x #

to :: Rep Shard x -> Shard #

type Rep Shard Source # 
Instance details

Defined in Calamity.Gateway.Types

newShard :: Members '[LogEff, MetricEff, Embed IO, Final IO, Async] r => Text -> Int -> Int -> Token -> InChan CalamityEvent -> Sem r (InChan ControlMessage, Async (Maybe ())) Source #

Creates and launches a shard