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

Safe HaskellNone
LanguageHaskell2010

Discord.Internal.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

class Request a where Source #

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

Execute a request blocking until a response is received

startRestThread :: Auth -> Chan Text -> IO (DiscordHandleRestChan, ThreadId) Source #

Starts the http request thread. Please only call this once