Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides framework to interact with REST api gateways. Implementations specific to the Discord API are provided in Network.Discord.Rest.Channel, Network.Discord.Rest.Guild, and Network.Discord.Rest.User.
- getGateway :: DiscordRest m => m URL
- baseURL :: String
- class Hashable (a b) => DoFetch a b | a b -> b where
- data Range = Range {}
- toQueryString :: Range -> Option Https
- module Network.Discord.Rest.Channel
- module Network.Discord.Rest.Guild
- module Network.Discord.Rest.User
Documentation
getGateway :: DiscordRest m => m URL Source #
Obtains a new gateway to connect to.
class Hashable (a b) => DoFetch a b | a b -> b where Source #
Class over which performing a data retrieval action is defined
doFetch :: DiscordRest m => a b -> m b Source #
FromJSON a => DoFetch UserRequest a Source # | |
FromJSON a => DoFetch GuildRequest a Source # | |
FromJSON a => DoFetch ChannelRequest a Source # | |
Represents a range of Snowflake
s
module Network.Discord.Rest.Channel
module Network.Discord.Rest.Guild
module Network.Discord.Rest.User