seyfert
    Preparing search index...

    Class RoleSelectMenu

    Represents a Select Menu for selecting roles.

    const roleSelectMenu = new RoleSelectMenu();
    roleSelectMenu.setCustomId("role-select");
    roleSelectMenu.addDefaultRoles("123456789", "987654321");

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    data: Partial<TYPE> = {}

    Methods

    • Adds default selected roles to the select menu.

      Parameters

      • ...roles: RestOrArray<string>

        Role IDs to be added as default.

      Returns this

      The current RoleSelectMenu instance.

    • Sets the default selected roles for the select menu.

      Parameters

      • ...roles: RestOrArray<string>

        Role IDs to be set as default.

      Returns this

      The current RoleSelectMenu 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.