class SelectMenuBuilder
extends
ComponentBuilder<APISelectMenuComponent>declare class SelectMenuBuilder extends ComponentBuilder<APISelectMenuComponent>
Represents a select menu component
Constructors
data?: Partial<APISelectMenuComponent>)
constructor(data?: Partial<APISelectMenuComponent>
Creates a new select menu from API data
readonlyPartial<DataType> data :
The API data associated with this component
Inherited from: ComponentBuilder
readonlySelectMenuOptionBuilder[] options :
The options within this select menu
addOptionsoptions: RestOrArray<APISelectMenuOption | SelectMenuOptionBuilder>) : this (
options: RestOrArray<APISelectMenuOption | SelectMenuOptionBuilder>
Adds options to this select menu
setCustomIdcustomId: string) : this (
customId: string
Sets the custom id for this select menu
setDisableddisabled?: boolean) : this (
disabled?: boolean
Sets whether this select menu is disabled
setMaxValuesmaxValues: number) : this (
maxValues: number
Sets the maximum values that must be selected in the select menu
setMinValuesminValues: number) : this (
minValues: number
Sets the minimum values that must be selected in the select menu
setOptionsoptions: RestOrArray<APISelectMenuOption | SelectMenuOptionBuilder>) : this (
options: RestOrArray<APISelectMenuOption | SelectMenuOptionBuilder>
Sets the options on this select menu
setPlaceholderplaceholder: string) : this (
placeholder: string
Sets the placeholder for this select menu
toJSONAPISelectMenuComponent () :
Serializes this component to an API-compatible JSON object