option

fun option(label: String, value: String, description: String? = null, emoji: Emoji? = null, default: Boolean = false)(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