discord-haskell-1.14.0: Write bots for Discord in Haskell
Safe HaskellNone
LanguageHaskell2010

Discord.Internal.Rest.Interactions

Synopsis

Documentation

data InteractionResponseRequest a where Source #

Data constructor for Interaction response requests

Constructors

CreateInteractionResponse :: InteractionId -> InteractionToken -> InteractionResponse -> InteractionResponseRequest ()

Create a response to an Interaction from the gateway.

This endpoint also supports file attachments similar to the webhook endpoints. Refer to Uploading files for details on uploading files and multipart/form-data requests.

GetOriginalInteractionResponse :: ApplicationId -> InteractionToken -> InteractionResponseRequest Message

Returns the initial Interaction response.

EditOriginalInteractionResponse :: ApplicationId -> InteractionToken -> InteractionResponseMessage -> InteractionResponseRequest Message

Edits the initial Interaction response.

DeleteOriginalInteractionResponse :: ApplicationId -> InteractionToken -> InteractionResponseRequest ()

Deletes the initial Interaction response.

CreateFollowupInteractionMessage :: ApplicationId -> InteractionToken -> InteractionResponseMessage -> InteractionResponseRequest Message

Create a followup message for an Interaction

GetFollowupInteractionMessage :: ApplicationId -> InteractionToken -> MessageId -> InteractionResponseRequest Message

Returns a followup message for an Interaction.

EditFollowupInteractionMessage :: ApplicationId -> InteractionToken -> MessageId -> InteractionResponse -> InteractionResponseRequest Message

Edits a followup message for an Interaction.

DeleteFollowupInteractionMessage :: ApplicationId -> InteractionToken -> MessageId -> InteractionResponseRequest ()

Deletes a followup message for an Interaction.