SlashCommandOptionBuilder

Properties

Link copied to clipboard
abstract var choices: List<Command.Choice>?

The option's choices.

Link copied to clipboard
abstract var description: String?

Description of the option.
Must follow the Discord specifications, see the OptionData constructor for details.

Link copied to clipboard
abstract var lengthRange: LengthRange?

Sets the minimum and maximum string length on the specified option.

Link copied to clipboard
abstract val optionName: String
Link copied to clipboard
Link copied to clipboard
abstract var valueRange: ValueRange?

Sets the minimum and maximum values on the specified option.

Functions

Link copied to clipboard

Uses an existing autocomplete handler with the specified function.

Link copied to clipboard
abstract fun autocompleteByName(name: String)

Uses an existing autocomplete handler with the specified name.