calamity-0.1.9.0: A library for writing discord bots
Safe HaskellNone
LanguageHaskell2010

Calamity.HTTP.MiscRoutes

Description

Miscellaneous routes

Documentation

data MiscRequest a where Source #

Instances

Instances details
Request (MiscRequest a) Source # 
Instance details

Defined in Calamity.HTTP.MiscRoutes

Associated Types

type Result (MiscRequest a) Source #

Methods

route :: MiscRequest a -> Route Source #

action :: MiscRequest a -> Options -> String -> IO (Response ByteString) Source #

invoke :: forall (r :: [(Type -> Type) -> Type -> Type]). (BotC r, FromJSON (Result (MiscRequest a))) => MiscRequest a -> Sem r (Either RestError (Result (MiscRequest a))) Source #

type Result (MiscRequest a) Source # 
Instance details

Defined in Calamity.HTTP.MiscRoutes

type Result (MiscRequest a) = a