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 String 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.Rest.Emoji majorRoute :: EmojiRequest a -> String Source # jsonRequest :: EmojiRequest a -> JsonRequest Source # |
data ModifyGuildEmojiOpts Source #
Instances
ToJSON ModifyGuildEmojiOpts Source # | |
Defined in Discord.Rest.Emoji toJSON :: ModifyGuildEmojiOpts -> Value # toEncoding :: ModifyGuildEmojiOpts -> Encoding # toJSONList :: [ModifyGuildEmojiOpts] -> Value # toEncodingList :: [ModifyGuildEmojiOpts] -> Encoding # |
parseEmojiImage :: ByteString -> Either String EmojiImageParsed Source #