Safe Haskell | Safe-Inferred |
---|---|
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) Source # | |
Defined in Calamity.HTTP.Emoji type Result (EmojiRequest a) Source # route :: EmojiRequest a -> Route Source # action :: EmojiRequest a -> Url 'Https -> Option 'Https -> Req LbsResponse Source # modifyResponse :: EmojiRequest a -> Value -> Value Source # | |
type Result (EmojiRequest a) Source # | |
Defined in Calamity.HTTP.Emoji |
data CreateGuildEmojiOptions Source #
Instances
ToJSON CreateGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji | |
Show CreateGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji showsPrec :: Int -> CreateGuildEmojiOptions -> ShowS # show :: CreateGuildEmojiOptions -> String # showList :: [CreateGuildEmojiOptions] -> ShowS # | |
CalamityToJSON' CreateGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji | |
(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "image" k CreateGuildEmojiOptions CreateGuildEmojiOptions a b Source # | |
Defined in Calamity.HTTP.Emoji | |
(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "name" k CreateGuildEmojiOptions CreateGuildEmojiOptions a b Source # | |
Defined in Calamity.HTTP.Emoji | |
(k ~ A_Lens, a ~ [Snowflake Role], b ~ [Snowflake Role]) => LabelOptic "roles" k CreateGuildEmojiOptions CreateGuildEmojiOptions a b Source # | |
Defined in Calamity.HTTP.Emoji |
data ModifyGuildEmojiOptions Source #
Instances
ToJSON ModifyGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji | |
Show ModifyGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji showsPrec :: Int -> ModifyGuildEmojiOptions -> ShowS # show :: ModifyGuildEmojiOptions -> String # showList :: [ModifyGuildEmojiOptions] -> ShowS # | |
CalamityToJSON' ModifyGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji | |
(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "name" k ModifyGuildEmojiOptions ModifyGuildEmojiOptions a b Source # | |
Defined in Calamity.HTTP.Emoji | |
(k ~ A_Lens, a ~ [Snowflake Role], b ~ [Snowflake Role]) => LabelOptic "roles" k ModifyGuildEmojiOptions ModifyGuildEmojiOptions a b Source # | |
Defined in Calamity.HTTP.Emoji |