class StringSelectMenuOptionBuilder
implements
JSONEncodable<APISelectMenuOption>export declare class StringSelectMenuOptionBuilder implements JSONEncodable<APISelectMenuOption>A builder that creates API-compatible JSON data for string select menu options.
Constructors
constructor(data?: Partial<APISelectMenuOption>)
data?: Partial<APISelectMenuOption>
Creates a new string select menu option from API data.
data : Partial<APISelectMenuOption>
setDefault(isDefault?: boolean) : this
isDefault?: boolean
Sets whether this option is selected by default.
setDescription(description: string) : this
description: string
Sets the description for this option.
setEmoji(emoji: APIMessageComponentEmoji) : this
emoji: APIMessageComponentEmoji
Sets the emoji to display for this option.
setLabel(label: string) : this
label: string
Sets the label for this option.
setValue(value: string) : this
value: string
Sets the value for this option.
toJSON() : APISelectMenuOption
Serializes this builder to API-compatible JSON data.