NumberOptionBuilder

Constructors

Link copied to clipboard
constructor(name: String, description: String)

Functions

Link copied to clipboard
inline fun choice(name: String, value: Double, localizationsBuilder: ChoiceLocalizationsBuilder.() -> Unit)

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

open override fun choice(name: String, value: Double, nameLocalizations: Optional<Map<Locale, String>?>)
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

The maximum value permitted.

Link copied to clipboard

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