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
data?: Partial<APISelectMenuOption>)
constructor(data?: Partial<APISelectMenuOption>
Creates a new string select menu option from API data.
setDefaultisDefault?: boolean) : this (
isDefault?: boolean
Sets whether this option is selected by default.
setDescriptiondescription: string) : this (
description: string
Sets the description for this option.
setEmojiemoji: APIMessageComponentEmoji) : this (
emoji: APIMessageComponentEmoji
Sets the emoji to display for this option.
setLabellabel: string) : this (
label: string
Sets the label for this option.
setValuevalue: string) : this (
value: string
Sets the value for this option.
toJSONvalidationOverride?: boolean) : APISelectMenuOption (
validationOverride?: boolean
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.