class SelectMenuOptionBuilder

external
declare class StringSelectMenuOptionBuilder implements JSONEncodable<APISelectMenuOption>

A builder that creates API-compatible JSON data for string select menu options.

Constructors

constructor()

Creates a new string select menu option from API data.

external
data : Partial<APISelectMenuOption>

external
setDefault(
isDefault?: boolean
) : this

Sets whether this option is selected by default.

external
setDescription(
description: string
) : this

Sets the description for this option.

external
setEmoji() : this

Sets the emoji to display for this option.

external
setLabel(
label: string
) : this

Sets the label for this option.

external
setValue(
value: string
) : this

Sets the value for this option.

external
toJSON() : APISelectMenuOption

Serializes this builder to API-compatible JSON data.