class StringSelectMenuOptionBuilder

export declare class StringSelectMenuOptionBuilder implements JSONEncodable<APISelectMenuOption>

Represents an option within a string select menu component

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 of this option

setEmoji() : this

Sets the emoji to display on this option

setLabel(
label: string
) : this

Sets the label of this option

setValue(
value: string
) : this

Sets the value of this option

Serializes this component to an API-compatible JSON object