GuildSlashCommand

An application command that is only available within a specific guild.

Functions

execute
Link copied to clipboard
abstract suspend fun GuildSlashCommandContext.execute()

Called when this command is used in an interaction

Properties

guildId
Link copied to clipboard
abstract val guildId: Snowflake

The Snowflake id of the guild that this command is available in.

request
Link copied to clipboard
abstract val request: ApplicationCommandRequest

The discord-json request body to be sent to the Discord API

Sources

jvm source
Link copied to clipboard