Safe Haskell | None |
---|---|
Language | Haskell2010 |
Combined http request stuff
Documentation
module Calamity.HTTP.AuditLog
invoke :: (Request a, BotC r, FromJSON (Result a)) => a -> Sem r (Either RestError (Result a)) Source #
module Calamity.HTTP.Channel
module Calamity.HTTP.Emoji
module Calamity.HTTP.Guild
module Calamity.HTTP.Invite
module Calamity.HTTP.MiscRoutes
module Calamity.HTTP.User
module Calamity.HTTP.Reason
Instances
Show RestError Source # | |
Generic RestError Source # | |
type Rep RestError Source # | |
Defined in Calamity.HTTP.Internal.Types type Rep RestError = D1 ('MetaData "RestError" "Calamity.HTTP.Internal.Types" "calamity-0.1.9.0-inplace" 'False) (C1 ('MetaCons "HTTPError" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "response") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value))) :+: C1 ('MetaCons "DecodeError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) |
module Calamity.HTTP.Webhook