respond

Sends an ephemeral response message that was previously deferred by using ActionInteractionBehavior.deferEphemeralResponse.

The response message is only visible to the user who invoked the interaction.

This function is supposed to be only invoked once, use the returned EphemeralMessageInteractionResponse for more operations.

Return

EphemeralMessageInteractionResponse the ephemeral response message to the interaction.

Parameters

builder

InteractionResponseModifyBuilder used to create the ephemeral response message.

Throws

if something went wrong during the request.


Sends a response message that was previously deferred by using ActionInteractionBehavior.deferPublicResponse or ActionInteractionBehavior.deferEphemeralResponse.

This function is supposed to be only invoked once, use the returned MessageInteractionResponse for more operations.

Return

MessageInteractionResponse the response message to the interaction.

Parameters

builder

InteractionResponseModifyBuilder used to create the response message.

Throws

if something went wrong during the request.


Sends a public response message that was previously deferred by using ActionInteractionBehavior.deferPublicResponse.

The response message is visible to all users in the channel the interaction was sent from.

This function is supposed to be only invoked once, use the returned PublicMessageInteractionResponse for more operations.

Return

PublicMessageInteractionResponse the public response message to the interaction.

Parameters

builder

InteractionResponseModifyBuilder used to create the public response message.

Throws

if something went wrong during the request.