class BaseSelectMenuBuilder

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

protectedabstractreadonlyexternal
data : Partial<Pick<Data, 'custom_id' | 'disabled' | 'id' | 'max_values' | 'min_values' | 'placeholder'>>

external
clearId() : this

Clears the id of this component, defaulting to a default incremented id.

Inherited from: ComponentBuilder

external
clearPlaceholder() : this

Clears the placeholder for this select menu.

external
setCustomId(
customId: string
) : this

Sets the custom id for this select menu.

external
setDisabled(
disabled?: boolean
) : this

Sets whether this select menu is disabled.

external
setId(
id: number
) : this

Sets the id of this component.

Inherited from: ComponentBuilder

external
setMaxValues(
maxValues: number
) : this

Sets the maximum values that must be selected in the select menu.

external
setMinValues(
minValues: number
) : this

Sets the minimum values that must be selected in the select menu.

external
setPlaceholder(
placeholder: string
) : this

Sets the placeholder for this select menu.

abstractexternal
toJSON(
validationOverride?: boolean
) : Data

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