export declare class SelectMenuBuilder extends ComponentBuilder<APISelectMenuComponent>
Represents a select menu component
Constructors
data?: Partial<APISelectMenuComponent>)
constructor(data?: Partial<APISelectMenuComponent>
Constructs a new instance of the SelectMenuBuilder
class
readonlyPartial<DataType> data :
The API data associated with this component
Inherited from: ComponentBuilder
readonlySelectMenuOptionBuilder[] options :
The options within this select menu
addOptionsoptions: RestOrArray<SelectMenuOptionBuilder | APISelectMenuOption>) : this (
options: RestOrArray<SelectMenuOptionBuilder | APISelectMenuOption>
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<SelectMenuOptionBuilder | APISelectMenuOption>) : this (
options: RestOrArray<SelectMenuOptionBuilder | APISelectMenuOption>
Sets the options on this select menu
setPlaceholderplaceholder: string) : this (
placeholder: string
Sets the placeholder for this select menu