discord-rest-0.2.2: An API wrapper for Discord in Haskell

Safe HaskellNone
LanguageHaskell2010

Network.Discord.Rest

Description

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.

Synopsis

Documentation

getGateway :: DiscordRest m => m URL Source #

Obtains a new gateway to connect to.

baseURL :: String Source #

The base url for API requests

class Hashable (a b) => DoFetch a b | a b -> b where Source #

Class over which performing a data retrieval action is defined

Minimal complete definition

doFetch

Methods

doFetch :: DiscordRest m => a b -> m b Source #

data Range Source #

Represents a range of Snowflakes

Constructors

Range 

Instances

toQueryString :: Range -> Option Https Source #

Convert a Range to a query string