discord-haskell-0.8.0: Write bots for Discord in Haskell

Safe HaskellNone
LanguageHaskell2010

Discord.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