Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides a rather raw interface to the websocket events through a real-time Chan
Documentation
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
Authorization token for the Discord API
Represents possible events sent by discord. Detailed information can be found at https://discordapp.com/developers/docs/topics/gateway.