GuildChatInputCommand

Constructors

Link copied to clipboard
constructor(data: ApplicationCommandData, service: InteractionService)

Properties

Link copied to clipboard
open override val applicationId: Snowflake
Link copied to clipboard
open override val data: ApplicationCommandData
Link copied to clipboard
open val defaultMemberPermissions: Permissions?

Set of Permissions required to execute this command unless a server admin changed them.

Link copied to clipboard

whether the command is enabled by default when the app is added to a guild.

Link copied to clipboard
open val description: String?

The description of the command.

Link copied to clipboard

A map containing all localizations of description.

Link copied to clipboard

The groups of this command, each group contains at least one sub command.

Link copied to clipboard
open override val guildId: Snowflake
Link copied to clipboard
open override val id: Snowflake

The unique identifier of this entity.

Link copied to clipboard
open val isNsfw: Boolean

Indicates whether the command is age-restricted.

Link copied to clipboard
open val name: String

The name of the command

Link copied to clipboard
open val nameLocalizations: Map<Locale, String>

A map containing all localizations of name.

Link copied to clipboard
open override val service: InteractionService
Link copied to clipboard

The directly nested sub commands of this command.

Link copied to clipboard
open val type: ApplicationCommandType
Link copied to clipboard
open val version: Snowflake

auto-incrementing version identifier updated during substantial record changes.

Functions

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

Compares entities on id.

Link copied to clipboard
abstract suspend fun delete()

Requests to delete this command.

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