UnsafeInteractionContext

interface UnsafeInteractionContext<R : MessageInteractionResponseBehavior, E : InteractionCreateEvent>

Interface representing a generic, unsafe interaction action context.

Inheritors

Properties

Link copied to clipboard
abstract val event: InteractionCreateEvent

Original interaction event object, for manual acks.

Link copied to clipboard
abstract var interactionResponse: R?

Response created by acknowledging the interaction. Generic.

Functions

Link copied to clipboard
abstract suspend fun ackEphemeral(builder: suspend InteractionResponseCreateBuilder.() -> Unit? = null): EphemeralMessageInteractionResponseBehavior

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

Link copied to clipboard
abstract suspend fun ackPublic(builder: suspend InteractionResponseCreateBuilder.() -> Unit? = null): PublicMessageInteractionResponseBehavior

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

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

Edit the current interaction's response.

Link copied to clipboard
abstract suspend fun editingPaginator(defaultGroup: Key = EMPTY_KEY, locale: Locale? = null, builder: suspend PaginatorBuilder.() -> Unit): BaseButtonPaginator

Create a paginator that edits the original interaction.

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

Respond to the current interaction with an ephemeral followup.

Link copied to clipboard
abstract suspend fun respondingPaginator(defaultGroup: Key = EMPTY_KEY, locale: Locale? = null, builder: suspend PaginatorBuilder.() -> Unit): BaseButtonPaginator

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

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

Respond to the current interaction with a public followup.