ApplicationCommand

Deprecated

This superclass is no longer mandatory, if you override methods from it, implement them using their respective interfaces

Base class for annotated application commands such as slash / context commands.

You are not required to use this if you use the application command provider interfaces.

See also

@JDASlashCommand

@JDAMessageCommand

@JDAUserCommand

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun getGeneratedValueSupplier(guild: Guild?, commandId: String?, commandPath: CommandPath, optionName: String, parameterType: ParameterType): ApplicationGeneratedValueSupplier

Returns the generated value supplier of a @GeneratedOption.

Link copied to clipboard
open override fun getOptionChoices(guild: Guild?, commandPath: CommandPath, optionName: String): List<Command.Choice>

Returns the choices available for this command path, on the specific optionName.