calamity-0.8.0.0: A library for writing discord bots in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Calamity.HTTP.Internal.Request

Description

Generic Request type

Documentation

class Request a where Source #

Minimal complete definition

route, action

Associated Types

type Result a Source #

Instances

Instances details
Request (AuditLogRequest a) Source # 
Instance details

Defined in Calamity.HTTP.AuditLog

Associated Types

type Result (AuditLogRequest a) Source #

Request (ChannelRequest a) Source # 
Instance details

Defined in Calamity.HTTP.Channel

Associated Types

type Result (ChannelRequest a) Source #

Request (EmojiRequest a) Source # 
Instance details

Defined in Calamity.HTTP.Emoji

Associated Types

type Result (EmojiRequest a) Source #

Request (GuildRequest a) Source # 
Instance details

Defined in Calamity.HTTP.Guild

Associated Types

type Result (GuildRequest a) Source #

Request (InteractionRequest a) Source # 
Instance details

Defined in Calamity.HTTP.Interaction

Associated Types

type Result (InteractionRequest a) Source #

Request (InviteRequest a) Source # 
Instance details

Defined in Calamity.HTTP.Invite

Associated Types

type Result (InviteRequest a) Source #

Request (MiscRequest a) Source # 
Instance details

Defined in Calamity.HTTP.MiscRoutes

Associated Types

type Result (MiscRequest a) Source #

Request a => Request (Reason a) Source # 
Instance details

Defined in Calamity.HTTP.Reason

Associated Types

type Result (Reason a) Source #

Request (UserRequest a) Source # 
Instance details

Defined in Calamity.HTTP.User

Associated Types

type Result (UserRequest a) Source #

Request (WebhookRequest a) Source # 
Instance details

Defined in Calamity.HTTP.Webhook

Associated Types

type Result (WebhookRequest a) Source #

invoke :: (Members '[RatelimitEff, TokenEff, LogEff, MetricEff, Embed IO] r, Request a, ReadResponse (Result a)) => a -> Sem r (Either RestError (Result a)) Source #