invoke

fun invoke(label: String, value: String, description: String? = null, emoji: Emoji? = null, default: Boolean = false): StringSelectMenuImpl.StringSelectMenuOptionCreator(source)

Creates a new StringSelectMenuOption with the given label and value.

Return

the created StringSelectMenuOption

Parameters

label

the label of the option

value

the value of the option

description

the description of the option

emoji

the emoji of the option

default

whether the option is default