Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides actions for Channel API interactions
Synopsis
- data EmojiRequest a where
- ListGuildEmojis :: GuildId -> EmojiRequest [Emoji]
- GetGuildEmoji :: GuildId -> EmojiId -> EmojiRequest Emoji
- CreateGuildEmoji :: GuildId -> Text -> EmojiImageParsed -> EmojiRequest Emoji
- ModifyGuildEmoji :: GuildId -> EmojiId -> ModifyGuildEmojiOpts -> EmojiRequest Emoji
- DeleteGuildEmoji :: GuildId -> EmojiId -> EmojiRequest ()
- data ModifyGuildEmojiOpts = ModifyGuildEmojiOpts {}
- parseEmojiImage :: ByteString -> Either Text EmojiImageParsed
Documentation
data EmojiRequest a where Source #
Data constructor for requests. See API
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
Request (EmojiRequest a) Source # | |
Defined in Discord.Internal.Rest.Emoji majorRoute :: EmojiRequest a -> String Source # jsonRequest :: EmojiRequest a -> JsonRequest Source # |
data ModifyGuildEmojiOpts Source #
Instances
parseEmojiImage :: ByteString -> Either Text EmojiImageParsed Source #