discord-haskell-1.12.3: Write bots for Discord in Haskell
Safe HaskellNone
LanguageHaskell2010

Discord.Internal.Rest.Emoji

Description

Provides actions for Channel API interactions

Synopsis

Documentation

data EmojiRequest a where Source #

Data constructor for requests. See API

Constructors

ListGuildEmojis :: GuildId -> EmojiRequest [Emoji]

List of emoji objects for the given guild. Requires MANAGE_EMOJIS permission.

GetGuildEmoji :: GuildId -> EmojiId -> EmojiRequest Emoji

Emoji object for the given guild and emoji ID

CreateGuildEmoji :: GuildId -> Text -> EmojiImageParsed -> EmojiRequest Emoji

Create a new guild emoji (static&animated). Requires MANAGE_EMOJIS permission.

ModifyGuildEmoji :: GuildId -> EmojiId -> ModifyGuildEmojiOpts -> EmojiRequest Emoji

Requires MANAGE_EMOJIS permission

DeleteGuildEmoji :: GuildId -> EmojiId -> EmojiRequest ()

Requires MANAGE_EMOJIS permission

Instances

Instances details
Request (EmojiRequest a) Source # 
Instance details

Defined in Discord.Internal.Rest.Emoji

data ModifyGuildEmojiOpts Source #

Instances

Instances details
Eq ModifyGuildEmojiOpts Source # 
Instance details

Defined in Discord.Internal.Rest.Emoji

Ord ModifyGuildEmojiOpts Source # 
Instance details

Defined in Discord.Internal.Rest.Emoji

Read ModifyGuildEmojiOpts Source # 
Instance details

Defined in Discord.Internal.Rest.Emoji

Show ModifyGuildEmojiOpts Source # 
Instance details

Defined in Discord.Internal.Rest.Emoji

ToJSON ModifyGuildEmojiOpts Source # 
Instance details

Defined in Discord.Internal.Rest.Emoji

parseEmojiImage :: ByteString -> Either Text EmojiImageParsed Source #