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) 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
Show CreateGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji showsPrec :: Int -> CreateGuildEmojiOptions -> ShowS # show :: CreateGuildEmojiOptions -> String # showList :: [CreateGuildEmojiOptions] -> ShowS # | |
Generic CreateGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji type Rep CreateGuildEmojiOptions :: Type -> Type # | |
ToJSON CreateGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji | |
type Rep CreateGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji type Rep CreateGuildEmojiOptions = D1 ('MetaData "CreateGuildEmojiOptions" "Calamity.HTTP.Emoji" "calamity-0.3.0.0-inplace" 'False) (C1 ('MetaCons "CreateGuildEmojiOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "image") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "roles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Snowflake Role])))) |
data ModifyGuildEmojiOptions Source #
Instances
Show ModifyGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji showsPrec :: Int -> ModifyGuildEmojiOptions -> ShowS # show :: ModifyGuildEmojiOptions -> String # showList :: [ModifyGuildEmojiOptions] -> ShowS # | |
Generic ModifyGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji type Rep ModifyGuildEmojiOptions :: Type -> Type # | |
ToJSON ModifyGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji | |
type Rep ModifyGuildEmojiOptions Source # | |
Defined in Calamity.HTTP.Emoji type Rep ModifyGuildEmojiOptions = D1 ('MetaData "ModifyGuildEmojiOptions" "Calamity.HTTP.Emoji" "calamity-0.3.0.0-inplace" 'False) (C1 ('MetaCons "ModifyGuildEmojiOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "roles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Snowflake Role]))) |