GuildMessageCommandInteraction

Constructors

Link copied to clipboard
constructor(data: InteractionData, kord: Kord, supplier: EntitySupplier)

Properties

Link copied to clipboard
open override val applicationId: Snowflake

The id of the application the interaction is for.

Link copied to clipboard
open val appPermissions: Permissions

Permissions the application has within the channel the interaction was sent from.

Link copied to clipboard

The behavior of the channel the interaction was sent from.

Link copied to clipboard
open override val channelId: Snowflake

The id of the channel the interaction was sent from.

Link copied to clipboard
open override val data: InteractionData
Link copied to clipboard

The behavior of the guild the interaction was sent from.

Link copied to clipboard
open override val guildId: Snowflake

The id of the guild the interaction was sent from.

Link copied to clipboard
open val guildLocale: Locale?

The guild's preferred locale, if invoked in a guild.

Link copied to clipboard
open override val id: Snowflake

The unique identifier of this entity.

Link copied to clipboard
open val invokedCommandGuildId: Snowflake?

The id of the guild the invoked command is registered to, null if the command is global.

Link copied to clipboard
open val invokedCommandId: Snowflake

The id of the invoked command.

Link copied to clipboard

The name of the invoked command.

Link copied to clipboard
open val invokedCommandType: ApplicationCommandType

The type of the invoked command.

Link copied to clipboard
open override val kord: Kord

The kord instance that created this object.

Link copied to clipboard
open val locale: Locale?

The selected language of the invoking user.

Link copied to clipboard
open val messages: Map<Snowflake, Message>
Link copied to clipboard
open val permissions: Permissions

Permissions the interaction invoker has within the channel the interaction was sent from.

Link copied to clipboard
Link copied to clipboard
open override val supplier: EntitySupplier

The supplier used to request entities.

Link copied to clipboard

The behavior of the message targeted by the MessageCommand.

Link copied to clipboard
open val targetId: Snowflake

The id of the message targeted by the MessageCommand.

Link copied to clipboard
open override val token: String

A continuation token for responding to the interaction.

Link copied to clipboard
open val type: InteractionType

The type of the interaction.

Link copied to clipboard
abstract val user: User

The invoker of the interaction.

Link copied to clipboard
open val version: Int

read-only property, always 1

Functions

Link copied to clipboard
open operator override fun compareTo(other: Entity): Int

Compares entities on id.

Link copied to clipboard

Acknowledges the interaction with the intent of responding with an ephemeral message later by calling respond on the returned object.

Link copied to clipboard

Acknowledges the interaction with the intent of responding with an ephemeral message later by calling edit on the returned object.

Link copied to clipboard

Acknowledges the interaction with the intent of responding with a public message later by calling respond on the returned object.

Link copied to clipboard

Acknowledges the interaction with the intent of responding with a public message later by calling edit on the returned object.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open suspend fun getChannel(): MessageChannel
Link copied to clipboard
open suspend fun getChannelOrNull(): MessageChannel?
Link copied to clipboard
open suspend fun getGuild(): Guild
Link copied to clipboard
open suspend fun getGuildOrNull(): Guild?
Link copied to clipboard

Returns the initial interaction response.

Link copied to clipboard

Returns the initial interaction response or null if it was not found.

Link copied to clipboard
open suspend fun getTarget(): Message
Link copied to clipboard
open suspend fun getTargetOrNull(): Message?
Link copied to clipboard
open override fun hashCode(): Int
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.

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

Responds to the interaction with an ephemeral message.

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

Responds to the interaction with a public message.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Returns a copy of this class with a new supplier provided by the strategy.