class BaseSelectMenuBuilder
implements
JSONEncodable<APISelectMenuComponent>extends
ComponentBuilder<Data>abstractexternal
declare abstract class BaseSelectMenuBuilder<Data extends APISelectMenuComponent> extends ComponentBuilder<Data> implements JSONEncodable<APISelectMenuComponent>
The base select menu builder that contains common symbols for select menu builders.
Type Parameters
APISelectMenuComponent Data extends
The type of API data that is stored within the builder
Clears the id of this component, defaulting to a default incremented id.
Inherited from: ComponentBuilder
external setCustomIdcustomId: string) : this (
customId: string
Sets the custom id for this select menu.
external setDisableddisabled?: boolean) : this (
disabled?: boolean
Sets whether this select menu is disabled.
external setMaxValuesmaxValues: number) : this (
maxValues: number
Sets the maximum values that must be selected in the select menu.
external setMinValuesminValues: number) : this (
minValues: number
Sets the minimum values that must be selected in the select menu.
external setPlaceholderplaceholder: string) : this (
placeholder: string
Sets the placeholder for this select menu.
abstractexternal toJSONvalidationOverride?: boolean) : Data (
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.
Inherited from: ComponentBuilder