Package-level declarations

Types

Link copied to clipboard

An Interaction created when a user performs some form of action (e.g. using a slash command or pressing a button).

Link copied to clipboard
class AttachmentOptionValue(val value: Snowflake, val focused: Boolean, val resolvedObject: Attachment?) : ResolvableOptionValue<Attachment>
Link copied to clipboard

A DataInteraction indicating an auto-complete request from Discord.

Link copied to clipboard
class BooleanOptionValue(val value: Boolean, val focused: Boolean) : OptionValue<Boolean>
Link copied to clipboard

A ComponentInteraction created when a user presses a button.

Link copied to clipboard
class ChannelOptionValue(val value: Snowflake, val focused: Boolean, val resolvedObject: ResolvedChannel?) : ResolvableOptionValue<ResolvedChannel>
Link copied to clipboard
Link copied to clipboard

An Interaction created when Discord requests some form of data (e.g. for auto-complete).

Link copied to clipboard

An ApplicationCommandInteraction that took place in a global context (e.g. a DM).

Link copied to clipboard
class GlobalAutoCompleteInteraction(val data: InteractionData, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : AutoCompleteInteraction, GlobalInteraction

An AutoCompleteInteraction that took place in a global context (e.g. a DM).

Link copied to clipboard

A ButtonInteraction that took place in a global context (e.g. a DM).

Link copied to clipboard
Link copied to clipboard

A ComponentInteraction that took place in a global context (e.g. a DM).

Link copied to clipboard

An Interaction that took place in a global context (e.g. a DM).

Link copied to clipboard

A MessageCommandInteraction that took place in a global context (e.g. a DM).

Link copied to clipboard
class GlobalModalSubmitInteraction(val data: InteractionData, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : ModalSubmitInteraction, GlobalInteraction

A ModalSubmitInteraction that took place in a global context (e.g. a DM).

Link copied to clipboard

A SelectMenuInteraction that took place in a global context (e.g. a DM).

Link copied to clipboard

A GlobalUserCommandInteraction that took place in a global context (e.g. a DM).

Link copied to clipboard

Represents an invocation of a sub-command under a group under the root command.

Link copied to clipboard
class GuildAutoCompleteInteraction(val data: InteractionData, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : AutoCompleteInteraction, GuildInteraction

An AutoCompleteInteraction that took place in the context of a Guild.

Link copied to clipboard

A ButtonInteraction that took place in the context of a Guild.

Link copied to clipboard

A ComponentInteraction that took place in the context of a Guild.

Link copied to clipboard

An Interaction that took place in the context of a Guild.

Link copied to clipboard
class GuildModalSubmitInteraction(val data: InteractionData, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : ModalSubmitInteraction, GuildInteraction

A ModalSubmitInteraction that took place in the context of a Guild.

Link copied to clipboard

A SelectMenuInteraction that took place in the context of a Guild.

Link copied to clipboard
Link copied to clipboard
class IntegerOptionValue(val value: Long, val focused: Boolean) : OptionValue<Long>
Link copied to clipboard
sealed interface Interaction : InteractionBehavior

An instance of an interaction.

Link copied to clipboard
sealed interface InteractionCommand : KordObject

The base interface of all commands that can be executed under a ChatInputCommandInteraction.

Link copied to clipboard
class MemberOptionValue(val value: Snowflake, val focused: Boolean, val resolvedObject: Member?) : UserOptionValue
Link copied to clipboard
class MentionableOptionValue(val value: Snowflake, val focused: Boolean, val resolvedObject: Entity?) : ResolvableOptionValue<Entity>
Link copied to clipboard

An ActionInteraction created when a user submits a modal.

Link copied to clipboard
class NumberOptionValue(val value: Double, val focused: Boolean) : OptionValue<Double>
Link copied to clipboard
sealed interface OptionValue<out T>
Link copied to clipboard
sealed interface ResolvableOptionValue<out T : Entity> : OptionValue<Snowflake>
Link copied to clipboard
class ResolvedObjects(val data: ResolvedObjectsData, val kord: Kord, val strategy: EntitySupplyStrategy<*> = kord.resources.defaultStrategy)
Link copied to clipboard
class RoleOptionValue(val value: Snowflake, val focused: Boolean, val resolvedObject: Role?) : ResolvableOptionValue<Role>
Link copied to clipboard

Represents an invocation of a root command.

Link copied to clipboard

A ComponentInteraction created when a user interacts with a select menu.

Link copied to clipboard
class StringOptionValue(val value: String, val focused: Boolean) : OptionValue<String>
Link copied to clipboard

Represents an invocation of a sub-command under the root command.

Link copied to clipboard
Link copied to clipboard
open class UserOptionValue(val value: Snowflake, val focused: Boolean, val resolvedObject: User?) : ResolvableOptionValue<User>

Functions

Link copied to clipboard
fun ComponentInteraction(data: InteractionData, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier): ComponentInteraction

Creates a ComponentInteraction with the given data, kord and supplier.

Link copied to clipboard
fun ModalSubmitInteraction(data: InteractionData, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier): ModalSubmitInteraction
Link copied to clipboard
fun OptionValue(value: CommandArgument<*>, resolvedObjects: ResolvedObjects?): OptionValue<*>