option

fun CheckboxGroup.Builder.option(label: String, value: String, description: String? = null, default: Boolean = false): CheckboxGroup.Builder(source)

Adds an option to this select menu, see CheckboxGroupOption.

Parameters

label

The label of this option, see CheckboxGroupOption.withLabel

value

The value of this option, this is what the bot receives, see CheckboxGroupOption.withValue

description

The description of this option, see CheckboxGroupOption.withDescription

default

Whether this option is selected by default


fun RadioGroup.Builder.option(label: String, value: String, description: String? = null, default: Boolean = false): RadioGroup.Builder(source)

Adds an option to this select menu, see RadioGroupOption.

Parameters

label

The label of this option, see RadioGroupOption.withLabel

value

The value of this option, this is what the bot receives, see RadioGroupOption.withValue

description

The description of this option, see RadioGroupOption.withDescription

default

Whether this option is selected by default


fun StringSelectMenu.Builder.option(label: String, value: String, description: String? = null, emoji: Emoji? = null, default: Boolean = false): StringSelectMenu.Builder(source)

Adds an option to this select menu, see SelectOption.

Parameters

label

The label of this option, see SelectOption.withLabel

value

The value of this option, this is what the bot receives, see SelectOption.withValue

description

The description of this option, see SelectOption.withDescription

emoji

The emoji of this option

default

Whether this option is selected by default