Package dev.kord.core.behavior.interaction.response

Types

EphemeralInteractionResponseBehavior
Link copied to clipboard

An InteractionResponseBehavior for an ephemeral response to an Interaction.

An InteractionResponseBehavior that supports sending followup messages to the interaction by using createPublicFollowup or createEphemeralFollowup.

InteractionResponseBehavior
Link copied to clipboard
interface InteractionResponseBehavior : KordObject, Strategizable

A handle for operations that can follow an Interaction Response.

PublicInteractionResponseBehavior
Link copied to clipboard
interface PublicInteractionResponseBehavior : InteractionResponseBehavior

An InteractionResponseBehavior for a public response to an Interaction.

Functions

createEphemeralFollowup
Link copied to clipboard
inline suspend fun FollowupPermittingInteractionResponseBehavior.createEphemeralFollowup(builder: FollowupMessageCreateBuilder.() -> Unit): EphemeralFollowupMessage

Follows up an interaction response by sending a FollowupMessage with the Ephemeral flag.

createPublicFollowup
Link copied to clipboard
inline suspend fun FollowupPermittingInteractionResponseBehavior.createPublicFollowup(builder: FollowupMessageCreateBuilder.() -> Unit): PublicFollowupMessage

Follows up an interaction response by sending a FollowupMessage without the Ephemeral flag.

fun DeferredEphemeralMessageInteractionResponseBehavior(applicationId: Snowflake, token: String, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier): DeferredEphemeralMessageInteractionResponseBehavior
fun DeferredPublicMessageInteractionResponseBehavior(applicationId: Snowflake, token: String, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier): DeferredPublicMessageInteractionResponseBehavior
edit
Link copied to clipboard
inline suspend fun EphemeralMessageInteractionResponseBehavior.edit(builder: InteractionResponseModifyBuilder.() -> Unit): EphemeralMessageInteractionResponse
inline suspend fun MessageInteractionResponseBehavior.edit(builder: InteractionResponseModifyBuilder.() -> Unit): MessageInteractionResponse

Requests to edit this MessageInteractionResponseBehavior.

inline suspend fun PublicMessageInteractionResponseBehavior.edit(builder: InteractionResponseModifyBuilder.() -> Unit): PublicMessageInteractionResponse
fun EphemeralMessageInteractionResponseBehavior(applicationId: Snowflake, token: String, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier): EphemeralMessageInteractionResponseBehavior
followUp
Link copied to clipboard
inline suspend fun FollowupPermittingInteractionResponseBehavior.followUp(builder: FollowupMessageCreateBuilder.() -> Unit): PublicFollowupMessage

inline suspend fun InteractionResponseBehavior.followUp(builder: FollowupMessageCreateBuilder.() -> Unit): PublicFollowupMessage

Follows up an interaction response without the Ephemeral flag.

followUpEphemeral
Link copied to clipboard
inline suspend fun FollowupPermittingInteractionResponseBehavior.followUpEphemeral(builder: FollowupMessageCreateBuilder.() -> Unit): EphemeralFollowupMessage

inline suspend fun InteractionResponseBehavior.followUpEphemeral(builder: FollowupMessageCreateBuilder.() -> Unit): EphemeralFollowupMessage

Follows up an interaction response with the Ephemeral flag.

fun FollowupPermittingInteractionResponseBehavior(applicationId: Snowflake, token: String, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier): FollowupPermittingInteractionResponseBehavior
PopupInteractionResponseBehavior
Link copied to clipboard
fun PopupInteractionResponseBehavior(applicationId: Snowflake, token: String, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier): PopupInteractionResponseBehavior
fun PublicMessageInteractionResponseBehavior(applicationId: Snowflake, token: String, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier): PublicMessageInteractionResponseBehavior
respond
Link copied to clipboard
inline suspend fun DeferredEphemeralMessageInteractionResponseBehavior.respond(builder: InteractionResponseModifyBuilder.() -> Unit): EphemeralMessageInteractionResponse

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

inline suspend fun DeferredMessageInteractionResponseBehavior.respond(builder: InteractionResponseModifyBuilder.() -> Unit): MessageInteractionResponse

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

inline suspend fun DeferredPublicMessageInteractionResponseBehavior.respond(builder: InteractionResponseModifyBuilder.() -> Unit): PublicMessageInteractionResponse

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