UnsafeButtonInteractionContext

interface UnsafeButtonInteractionContext : UnsafeComponentInteractionContext<ButtonInteractionCreateEvent>

Interface representing a generic, unsafe interaction action context.

Inheritors

Properties

Link copied to clipboard
abstract override val event: ButtonInteractionCreateEvent

Original interaction event object, for manual acks.

Link copied to clipboard
abstract var interactionResponse: MessageInteractionResponseBehavior?

Response created by acknowledging the interaction. Generic.

Functions

Link copied to clipboard
open suspend override fun ackEphemeral(builder: suspend InteractionResponseCreateBuilder.() -> Unit?): EphemeralMessageInteractionResponseBehavior

Send an ephemeral ack if you haven't acknowledged the interaction yet.

Link copied to clipboard
open suspend override fun ackPublic(builder: suspend InteractionResponseCreateBuilder.() -> Unit?): PublicMessageInteractionResponseBehavior

Send a public ack if you haven't acknowledged the interaction yet.

Link copied to clipboard
open suspend override fun edit(builder: suspend InteractionResponseModifyBuilder.() -> Unit): MessageInteractionResponse

Edit the current interaction's response.

Link copied to clipboard
open suspend override fun editingPaginator(defaultGroup: Key, locale: Locale?, builder: suspend PaginatorBuilder.() -> Unit): BaseButtonPaginator

Create a paginator that edits the original interaction.

Link copied to clipboard
open suspend override fun respondEphemeral(builder: suspend FollowupMessageCreateBuilder.() -> Unit): EphemeralFollowupMessage

Respond to the current interaction with an ephemeral followup.

Link copied to clipboard
open suspend override fun respondingPaginator(defaultGroup: Key, locale: Locale?, builder: suspend PaginatorBuilder.() -> Unit): BaseButtonPaginator

Create a paginator that creates a public follow-up message and edits it.

Link copied to clipboard
open suspend override fun respondPublic(builder: suspend FollowupMessageCreateBuilder.() -> Unit): PublicFollowupMessage

Respond to the current interaction with a public followup.