SelectMenuOptionBuilder

Represents a option within a select menu component
declare class SelectMenuOptionBuilder 

constructor(data?)

Constructs a new instance of the SelectMenuOptionBuilder class
NameTypeOptionalDescription
dataPartial<APISelectMenuOption>YesNone

data

:

Partial<APISelectMenuOption>

setDefault(isDefault?)

:

this

Sets whether this option is selected by default
NameTypeOptionalDescription
isDefaultbooleanYes
Whether this option is selected by default

setDescription(description)

:

this

Sets the description of this option
NameTypeOptionalDescription
descriptionstringNo
The description of this option

setEmoji(emoji)

:

this

Sets the emoji to display on this option
NameTypeOptionalDescription
emojiAPIMessageComponentEmojiNo
The emoji to display on this option

setLabel(label)

:

this

Sets the label of this option
NameTypeOptionalDescription
labelstringNo
The label to show on this option

setValue(value)

:

this

Sets the value of this option
NameTypeOptionalDescription
valuestringNo
The value of this option