discord-haskell-0.5.0: Write bots for Discord in Haskell

Safe HaskellNone
LanguageHaskell2010

Discord.Gateway

Description

Provides a rather raw interface to the websocket events through a real-time Chan

Synopsis

Documentation

data Gateway Source #

Concurrency primitives that make up the gateway. Build a higher level interface over these

startGatewayThread :: Auth -> Chan String -> IO (Gateway, ThreadId) Source #

Create a Chan for websockets. This creates a thread that writes all the received Events to the Chan