Discord.https - v3.0.16
    Preparing search index...

    Class BaseSelectMenuBuilder<SelectMenuType>Abstract

    The base select menu builder that contains common symbols for select menu builders.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    data: Partial<DataType>

    The API data associated with this component.

    Methods

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

      Returns this

    • Sets the custom id for this select menu.

      Parameters

      • customId: string

        The custom id to use

      Returns this

    • Sets whether this select menu is disabled.

      Parameters

      • Optionaldisabled: boolean

        Whether this select menu is disabled

      Returns this

    • Sets the id (not the custom id) for this component.

      Parameters

      • id: number

        The id for this component

      Returns this

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

      Parameters

      • maxValues: number

        The maximum values that must be selected

      Returns this

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

      Parameters

      • minValues: number

        The minimum values that must be selected

      Returns this

    • Sets the placeholder for this select menu.

      Parameters

      • placeholder: string

        The placeholder to use

      Returns this

    • Sets whether this select menu is required.

      Parameters

      • Optionalrequired: boolean

        Whether this select menu is required

      Returns this

      Only for use in modals.

    • Serializes this builder to API-compatible JSON data.

      Returns SelectMenuType

      This method runs validations on the data before serializing it. As such, it may throw an error if the data is invalid.