StringChoiceBuilder

Constructors

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

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
Link copied to clipboard
Link copied to clipboard
open override var description: String

The default description.

Link copied to clipboard

A MutableMap containing localized versions of description.

Link copied to clipboard

The maximum allowed string length (minimum of 1, maximum of 6000).

Link copied to clipboard

The minimum allowed string length (minimum of 0, maximum of 6000).

Link copied to clipboard
open override var name: String

The default name.

Link copied to clipboard

A MutableMap containing localized versions of name.

Link copied to clipboard
Link copied to clipboard

Functions

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

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

open override fun choice(name: String, value: String, 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