Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides types and encoding/decoding code. Types should be identical to those provided in the Discord API documentation.
- data Auth
- authToken :: Auth -> String
- newtype Snowflake = Snowflake Word64
- creationDate :: Snowflake -> UTCTime
- epochTime :: UTCTime
- justRight :: Show a => Either a b -> b
- reparse :: (ToJSON a, FromJSON b) => a -> Either String b
- module Network.Discord.Types.Channel
- module Network.Discord.Types.Events
- module Network.Discord.Types.Gateway
- module Network.Discord.Types.Guild
- module Data.Aeson
Documentation
Authorization token for the Discord API
A unique integer identifier. Can be used to calculate the creation date of an entity.
creationDate :: Snowflake -> UTCTime Source #
Gets a creation date from a snowflake.
reparse :: (ToJSON a, FromJSON b) => a -> Either String b Source #
Convert ToJSON values to FromJSON values
module Network.Discord.Types.Events
module Network.Discord.Types.Guild
module Data.Aeson