ApplicationCommand

abstract class ApplicationCommand(source)

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 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 fun getOptionChoices(guild: Guild?, commandPath: CommandPath, optionName: String): List<Command.Choice>

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