Package dev.kord.core.behavior.interaction

Types

ActionInteractionBehavior
Link copied to clipboard
interface ActionInteractionBehavior : InteractionBehavior

The behavior of an ActionInteraction.

AutoCompleteInteractionBehavior
Link copied to clipboard
interface AutoCompleteInteractionBehavior : DataInteractionBehavior

The behavior of an AutoCompleteInteraction.

ComponentInteractionBehavior
Link copied to clipboard
interface ComponentInteractionBehavior : ActionInteractionBehavior

The behavior of a ComponentInteraction or a ModalSubmitInteraction that contains a message.

DataInteractionBehavior
Link copied to clipboard
interface DataInteractionBehavior : InteractionBehavior

The behavior of a DataInteraction.

GlobalInteractionBehavior
Link copied to clipboard
interface GlobalInteractionBehavior : InteractionBehavior

The behavior of a GlobalInteraction.

GuildInteractionBehavior
Link copied to clipboard
interface GuildInteractionBehavior : InteractionBehavior

The behavior of a GuildInteraction.

InteractionBehavior
Link copied to clipboard
interface InteractionBehavior : KordEntity, Strategizable

The behavior of an Interaction.

ModalParentInteractionBehavior
Link copied to clipboard
interface ModalParentInteractionBehavior : ActionInteractionBehavior

The behavior of an ActionInteraction that can be responded to with a popup modal.

Functions

acknowledgeEphemeralUpdateMessage
Link copied to clipboard
suspend fun ComponentInteractionBehavior.acknowledgeEphemeralUpdateMessage(builder: UpdateMessageInteractionResponseCreateBuilder.() -> Unit): EphemeralMessageInteractionResponseBehavior

Acknowledges a component interaction ephemerally and updates the message with the builder.

acknowledgePublicUpdateMessage
Link copied to clipboard
suspend fun ComponentInteractionBehavior.acknowledgePublicUpdateMessage(builder: UpdateMessageInteractionResponseCreateBuilder.() -> Unit): PublicMessageInteractionResponseBehavior

Acknowledges a component interaction publicly and updates the message with the builder.

ActionInteractionBehavior
Link copied to clipboard
fun ActionInteractionBehavior(id: Snowflake, channelId: Snowflake, token: String, applicationId: Snowflake, kord: Kord, strategy: EntitySupplyStrategy<*> = kord.resources.defaultStrategy): ActionInteractionBehavior
ComponentInteractionBehavior
Link copied to clipboard
fun ComponentInteractionBehavior(id: Snowflake, channelId: Snowflake, token: String, applicationId: Snowflake, kord: Kord, strategy: EntitySupplyStrategy<*> = kord.resources.defaultStrategy): ComponentInteractionBehavior
GuildInteractionBehavior
Link copied to clipboard
fun GuildInteractionBehavior(guildId: Snowflake, id: Snowflake, channelId: Snowflake, applicationId: Snowflake, token: String, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier): GuildInteractionBehavior
modal
Link copied to clipboard
inline suspend fun ModalParentInteractionBehavior.modal(title: String, customId: String, builder: ModalBuilder.() -> Unit): PopupInteractionResponseBehavior

Responds to the interaction with a popup modal.

respondEphemeral
Link copied to clipboard
inline suspend fun ActionInteractionBehavior.respondEphemeral(builder: InteractionResponseCreateBuilder.() -> Unit): EphemeralMessageInteractionResponseBehavior

Responds to the interaction with an ephemeral message.

respondPublic
Link copied to clipboard
inline suspend fun ActionInteractionBehavior.respondPublic(builder: InteractionResponseCreateBuilder.() -> Unit): PublicMessageInteractionResponseBehavior

Responds to the interaction with a public message.

suggest
Link copied to clipboard
inline suspend fun <T> AutoCompleteInteractionBehavior.suggest(choices: List<Choice<T>>)

Responds to the interaction with choices to this auto-complete request.

suggestInt
Link copied to clipboard
inline suspend fun AutoCompleteInteractionBehavior.suggestInt(builder: IntChoiceBuilder.() -> Unit)

Responds to the interaction with the int choices specified by builder.

suggestNumber
Link copied to clipboard
inline suspend fun AutoCompleteInteractionBehavior.suggestNumber(builder: NumberChoiceBuilder.() -> Unit)

Responds to the interaction with the number choices specified by builder.

suggestString
Link copied to clipboard
inline suspend fun AutoCompleteInteractionBehavior.suggestString(builder: StringChoiceBuilder.() -> Unit)

Responds to the interaction with the string choices specified by builder.

updateEphemeralMessage
Link copied to clipboard
inline suspend fun ComponentInteractionBehavior.updateEphemeralMessage(builder: UpdateMessageInteractionResponseCreateBuilder.() -> Unit): EphemeralMessageInteractionResponseBehavior

Responds to the interaction by updating the original ephemeral message.

updatePublicMessage
Link copied to clipboard
inline suspend fun ComponentInteractionBehavior.updatePublicMessage(builder: UpdateMessageInteractionResponseCreateBuilder.() -> Unit): PublicMessageInteractionResponseBehavior

Responds to the interaction by updating the original public message.