Safe Haskell | None |
---|---|
Language | Haskell2010 |
Emoji endpoints
Documentation
data EmojiRequest a where Source #
ListGuildEmojis :: HasID Guild g => g -> EmojiRequest [Emoji] | |
GetGuildEmoji :: (HasID Guild g, HasID Emoji e) => g -> e -> EmojiRequest Emoji | |
CreateGuildEmoji :: HasID Guild g => g -> CreateGuildEmojiOptions -> EmojiRequest Emoji | |
ModifyGuildEmoji :: (HasID Guild g, HasID Emoji e) => g -> e -> ModifyGuildEmojiOptions -> EmojiRequest Emoji | |
DeleteGuildEmoji :: (HasID Guild g, HasID Emoji e) => g -> e -> EmojiRequest () |
Instances
Request (EmojiRequest a) a Source # | |
Defined in Calamity.HTTP.Emoji toRoute :: EmojiRequest a -> Route Source # url :: EmojiRequest a -> String Source # toAction :: EmojiRequest a -> Options -> String -> IO (Response ByteString) Source # invokeRequest :: (BotC reffs, FromJSON a) => EmojiRequest a -> Sem reffs (Either RestError a) Source # |