class StringSelectMenuOptionBuilder

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.

setDefault(
isDefault?: boolean
) : this

Sets whether this option is selected by default.

setDescription(
description: string
) : this

Sets the description for this option.

setEmoji() : this

Sets the emoji to display for this option.

setLabel(
label: string
) : this

Sets the label for this option.

setValue(
value: string
) : this

Sets the value for this option.

Serializes this builder to API-compatible JSON data.