seyfert
    Preparing search index...

    Class SelectMenu<Select>

    Represents a base class for building Select Menus.

    The type of interaction.

    const selectMenu = new SelectMenu<APIUserSelectComponent>();
    selectMenu.setCustomId("user-select-menu");
    selectMenu.setPlaceholder("Select a user");

    Type Parameters

    • Select extends APISelectMenuComponent = APISelectMenuComponent

      The type of APISelectMenuComponent.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    data: Partial<TYPE> = {}

    Methods

    • Sets the custom ID for the select menu.

      Parameters

      • id: string

        The custom ID for the select menu.

      Returns this

      The current SelectMenu instance.

    • Sets whether the select menu is disabled. [disabled=true] - Indicates whether the select menu is disabled.

      Parameters

      • disabled: boolean = true

      Returns this

      The current SelectMenu instance.

    • Sets the placeholder text for the select menu.

      Parameters

      • placeholder: string

        The placeholder text.

      Returns this

      The current SelectMenu instance.