calamity-0.1.0.0: A library for writing discord bots

Safe HaskellNone
LanguageHaskell2010

Calamity.Gateway.Shard

Description

The shard logic

Synopsis

Documentation

newShard :: Members '[LogEff, Embed IO, Final IO, Async] r => Text -> Int -> Int -> Token -> TQueue DispatchMessage -> Sem r (Shard, Async (Maybe ())) Source #

Creates and launches a shard