Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides base types and utility functions needed for modules in Discord.Internal.Types
Synopsis
- data Auth = Auth Text
- authToken :: Auth -> Text
- newtype Snowflake = Snowflake Word64
- type ChannelId = Snowflake
- type StageId = Snowflake
- type GuildId = Snowflake
- type MessageId = Snowflake
- type EmojiId = Snowflake
- type UserId = Snowflake
- type OverwriteId = Snowflake
- type RoleId = Snowflake
- type IntegrationId = Snowflake
- type WebhookId = Snowflake
- type ParentId = Snowflake
- snowflakeCreationDate :: Snowflake -> UTCTime
- epochTime :: UTCTime
Documentation
Authorization token for the Discord API
A unique integer identifier. Can be used to calculate the creation date of an entity.
Instances
type OverwriteId = Snowflake Source #
type IntegrationId = Snowflake Source #
snowflakeCreationDate :: Snowflake -> UTCTime Source #
Gets a creation date from a snowflake.