Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides a higher level interface to the rest functions. Preperly writes to the rate-limit loop. Creates separate MVars for each call
Synopsis
- module Discord.Types
- writeRestCall :: (Request (r a), FromJSON a) => RestChan -> r a -> IO (Either RestCallException a)
- createHandler :: Auth -> Chan String -> IO (RestChan, ThreadId)
Documentation
module Discord.Types
writeRestCall :: (Request (r a), FromJSON a) => RestChan -> r a -> IO (Either RestCallException a) Source #
Execute a request blocking until a response is received