option

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

Add option to this menu.

Parameters

label

The label for the option(maximum 100 characters)

value

The value for the option used to indicate which option was selected(maximum 100 characters)

description

The new description or null to have no description(maximum 100 characters)

emoji

The Emoji shown next to this option, or null

default

Whether this option is selected by default