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

Calamity.HTTP.Interaction

Description

Interaction endpoints

Documentation

data InteractionRequest a where Source #

Constructors

CreateResponseMessage :: HasID Interaction i => i -> InteractionToken -> InteractionCallbackMessageOptions -> InteractionRequest () 
CreateResponseDefer

Ack an interaction and defer the response

This route triggers the thinking message

Fields

CreateResponseDeferComponent :: HasID Interaction i => i -> InteractionToken -> InteractionRequest ()

Ack an interaction and defer the response

This route is only usable by component interactions, and doesn't trigger a thinking message

CreateResponseUpdate :: HasID Interaction i => i -> InteractionToken -> InteractionCallbackMessageOptions -> InteractionRequest () 
CreateResponseAutocomplete :: HasID Interaction i => i -> InteractionToken -> InteractionCallbackAutocomplete -> InteractionRequest () 
CreateResponseModal :: HasID Interaction i => i -> InteractionToken -> InteractionCallbackModal -> InteractionRequest () 
GetOriginalInteractionResponse :: HasID Application i => i -> InteractionToken -> InteractionRequest Message 
EditOriginalInteractionResponse :: HasID Application i => i -> InteractionToken -> InteractionCallbackMessageOptions -> InteractionRequest Message 
DeleteOriginalInteractionResponse :: HasID Application i => i -> InteractionToken -> InteractionRequest () 
CreateFollowupMessage :: HasID Application i => i -> InteractionToken -> InteractionCallbackMessageOptions -> InteractionRequest () 
GetFollowupMessage :: (HasID Application i, HasID Message m) => i -> m -> InteractionToken -> InteractionRequest Message 
EditFollowupMessage :: (HasID Application i, HasID Message m) => i -> m -> InteractionToken -> InteractionCallbackMessageOptions -> InteractionRequest () 
DeleteFollowupMessage :: (HasID Application i, HasID Message m) => i -> m -> InteractionToken -> InteractionRequest () 

data InteractionCallbackMessageOptions Source #

Instances

Instances details
Show InteractionCallbackMessageOptions Source # 
Instance details

Defined in Calamity.HTTP.Interaction

Default InteractionCallbackMessageOptions Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ Maybe AllowedMentions, b ~ Maybe AllowedMentions) => LabelOptic "allowedMentions" k InteractionCallbackMessageOptions InteractionCallbackMessageOptions a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ Maybe [CreateMessageAttachment], b ~ Maybe [CreateMessageAttachment]) => LabelOptic "attachments" k InteractionCallbackMessageOptions InteractionCallbackMessageOptions a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ Maybe [Component], b ~ Maybe [Component]) => LabelOptic "components" k InteractionCallbackMessageOptions InteractionCallbackMessageOptions a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ Maybe Text, b ~ Maybe Text) => LabelOptic "content" k InteractionCallbackMessageOptions InteractionCallbackMessageOptions a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ Maybe [Embed], b ~ Maybe [Embed]) => LabelOptic "embeds" k InteractionCallbackMessageOptions InteractionCallbackMessageOptions a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "ephemeral" k InteractionCallbackMessageOptions InteractionCallbackMessageOptions a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "suppressEmbeds" k InteractionCallbackMessageOptions InteractionCallbackMessageOptions a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ Maybe Bool, b ~ Maybe Bool) => LabelOptic "tts" k InteractionCallbackMessageOptions InteractionCallbackMessageOptions a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction

data InteractionCallbackAutocompleteChoice Source #

Constructors

InteractionCallbackAutocompleteChoice 

Fields

Instances

Instances details
ToJSON InteractionCallbackAutocompleteChoice Source # 
Instance details

Defined in Calamity.HTTP.Interaction

Show InteractionCallbackAutocompleteChoice Source # 
Instance details

Defined in Calamity.HTTP.Interaction

CalamityToJSON' InteractionCallbackAutocompleteChoice Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "name" k InteractionCallbackAutocompleteChoice InteractionCallbackAutocompleteChoice a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ HashMap Text Text, b ~ HashMap Text Text) => LabelOptic "nameLocalizations" k InteractionCallbackAutocompleteChoice InteractionCallbackAutocompleteChoice a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ Value, b ~ Value) => LabelOptic "value" k InteractionCallbackAutocompleteChoice InteractionCallbackAutocompleteChoice a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction

data InteractionCallbackModal Source #

Instances

Instances details
ToJSON InteractionCallbackModal Source # 
Instance details

Defined in Calamity.HTTP.Interaction

Show InteractionCallbackModal Source # 
Instance details

Defined in Calamity.HTTP.Interaction

CalamityToJSON' InteractionCallbackModal Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ [Component], b ~ [Component]) => LabelOptic "components" k InteractionCallbackModal InteractionCallbackModal a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ CustomID, b ~ CustomID) => LabelOptic "customID" k InteractionCallbackModal InteractionCallbackModal a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction

(k ~ A_Lens, a ~ Text, b ~ Text) => LabelOptic "title" k InteractionCallbackModal InteractionCallbackModal a b Source # 
Instance details

Defined in Calamity.HTTP.Interaction