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

Safe HaskellNone
LanguageHaskell2010

Discord.Rest

Description

Provides a higher level interface to the rest functions. Preperly writes to the rate-limit loop. Creates separate MVars for each call

Synopsis

Documentation

writeRestCall :: (Request (r a), FromJSON a) => RestChan -> r a -> IO (Either RestCallException a) Source #

Execute a request blocking until a response is received

createHandler :: Auth -> Chan String -> IO (RestChan, ThreadId) Source #

Starts the http request thread. Please only call this once