NumericOptionBuilder

Builder for numeric options.

Inheritors

Functions

Link copied to clipboard
abstract fun choice(name: String, value: T, nameLocalizations: Optional<Map<Locale, String>?> = Optional.Missing())

inline fun choice(name: String, value: T, localizationsBuilder: ChoiceLocalizationsBuilder.() -> Unit)

Registers a new choice with name representing value and applies localizationsBuilder to it

Link copied to clipboard
open fun description(locale: Locale, description: String)

Registers a localization of description in locale.

Link copied to clipboard
open fun name(locale: Locale, name: String)

Registers a localization of name in locale.

Link copied to clipboard
open override fun toRequest(): ApplicationCommandOption

Properties

Link copied to clipboard

Setting this to true allows you to dynamically respond with your choices, depending on the user input.

Link copied to clipboard
var choices: MutableList<Choice<*>>?
Link copied to clipboard
Link copied to clipboard
open override var description: String

The default description.

Link copied to clipboard
open override var descriptionLocalizations: MutableMap<Locale, String>?

A MutableMap containing localized versions of description.

Link copied to clipboard
var maxValue: T?

The maximum value permitted.

Link copied to clipboard
var minValue: T?

The minimum value permitted.

Link copied to clipboard
open override var name: String

The default name.

Link copied to clipboard
open override var nameLocalizations: MutableMap<Locale, String>?

A MutableMap containing localized versions of name.

Link copied to clipboard
Link copied to clipboard
val type: ApplicationCommandOptionType