StringSelectBuilder

Constructors

Link copied to clipboard
constructor(customId: String)

Properties

Link copied to clipboard

The range of values that can be accepted. Accepts any range between 0,25. Defaults to 1..1.

Link copied to clipboard
Link copied to clipboard

Whether the component is disabled. Defaults to false.

Link copied to clipboard

The choices in the select, max 25.

Link copied to clipboard

Custom placeholder if no value is selected, max 150 characters.

Functions

Link copied to clipboard
override fun build(): DiscordChatComponent
Link copied to clipboard
inline fun StringSelectBuilder.option(label: String, value: String, builder: SelectOptionBuilder.() -> Unit = {})

Adds a new option to the select menu with the given label and value that can be configured by the builder.