class SelectMenuOptionBuilder
implements
JSONEncodable<APISelectMenuOption>declare class SelectMenuOptionBuilder implements JSONEncodable<APISelectMenuOption>
Represents a option within a select menu component
Constructors
data?: Partial<APISelectMenuOption>)
constructor(data?: Partial<APISelectMenuOption>
Creates a new select menu option from API data
Partial<APISelectMenuOption> data :
setDefaultisDefault?: boolean) : this (
isDefault?: boolean
Sets whether this option is selected by default
setDescriptiondescription: string) : this (
description: string
Sets the description of this option
setEmojiemoji: APIMessageComponentEmoji) : this (
emoji: APIMessageComponentEmoji
Sets the emoji to display on this option
setLabellabel: string) : this (
label: string
Sets the label of this option
setValuevalue: string) : this (
value: string
Sets the value of this option
toJSONAPISelectMenuOption () :
Serializes this component to an API-compatible JSON object