class StringSelectMenuBuilder
extends
BuilderStringSelectMenuComponentexport class StringSelectMenuBuilder extends BuilderStringSelectMenuComponent
Class used to build select menu components to be sent through the API
readonlyexternalPartial<SelectMenuType> data :
The API data associated with this component.
Inherited from: ComponentBuilder
readonlyexternalStringSelectMenuOptionBuilder[] options :
The options within this select menu.
Inherited from: SelectMenuBuilder
static from) : StringSelectMenuBuilder (
Creates a new select menu builder from json data
external setCustomIdcustomId: string) : this (
Sets the custom id for this select menu.
Inherited from: BaseSelectMenuBuilder
external setDisableddisabled?: boolean) : this (
Sets whether this select menu is disabled.
Inherited from: BaseSelectMenuBuilder
external setMaxValuesmaxValues: number) : this (
Sets the maximum values that must be selected in the select menu.
Inherited from: BaseSelectMenuBuilder
external setMinValuesminValues: number) : this (
Sets the minimum values that must be selected in the select menu.
Inherited from: BaseSelectMenuBuilder
external setPlaceholderplaceholder: string) : this (
Sets the placeholder for this select menu.
Inherited from: BaseSelectMenuBuilder
external spliceOptionsindex: numberdeleteCount: number...options: RestOrArray<APISelectMenuOption | StringSelectMenuOptionBuilder>) : this (
Removes, replaces, or inserts options for this select menu.
selectMenu.spliceOptions(0, 1);
const n = 4;
selectMenu.spliceOptions(0, n);
selectMenu.spliceOptions(-1, 1);
Inherited from: SelectMenuBuilder
external toJSONAPIStringSelectComponent () :
Serializes this builder to API-compatible JSON data.
Inherited from: SelectMenuBuilder