class StringSelectMenuOptionBuilder

export 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.

clearDescription() : this

Clears the description for this option.

clearEmoji() : this

Clears the emoji for this option.

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.

toJSON(
validationOverride?: boolean
) : APISelectMenuOption

Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.