option

fun option(    label: String,     value: String = label,     description: String? = null,     emoji: DiscordPartialEmoji? = null)

Create an option in a select menu.

Parameters

label

The text displayed on Discord.

value

The value returned on selection.

description

The text show under the label.

emoji

The emoji shown next to the option.