class StringSelectMenuOptionBuilder

export class StringSelectMenuOptionBuilder extends BuildersSelectMenuOption

Represents a select menu option builder.

Constructors

Constructs a new instance of the StringSelectMenuOptionBuilder class

external
data : Partial<APISelectMenuOption>

Inherited from: SelectMenuOptionBuilder

Creates a new select menu option builder from JSON data

external
setDefault(
isDefault?: boolean
) : this

Sets whether this option is selected by default.

Inherited from: SelectMenuOptionBuilder

external
setDescription(
description: string
) : this

Sets the description for this option.

Inherited from: SelectMenuOptionBuilder

setEmoji() : this

Sets the emoji to display on this option

external
setLabel(
label: string
) : this

Sets the label for this option.

Inherited from: SelectMenuOptionBuilder

external
setValue(
value: string
) : this

Sets the value for this option.

Inherited from: SelectMenuOptionBuilder

external
toJSON() : APISelectMenuOption

Serializes this builder to API-compatible JSON data.

Inherited from: SelectMenuOptionBuilder