ApplicationCommand

interface ApplicationCommand<in C : ApplicationCommandContext>

A discord application command.

Functions

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

Called when this command is used in an interaction

Properties

request
Link copied to clipboard
abstract val request: ApplicationCommandRequest

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

Inheritors

GlobalApplicationCommand
Link copied to clipboard
GlobalGuildApplicationCommand
Link copied to clipboard
GuildApplicationCommand
Link copied to clipboard
MessageCommand
Link copied to clipboard
SlashCommand
Link copied to clipboard
UserCommand
Link copied to clipboard

Sources

jvm source
Link copied to clipboard