seyfert
    Preparing search index...

    Class StringSelectMenu

    Represents a Select Menu for selecting string options.

    const stringSelectMenu = new StringSelectMenu();
    stringSelectMenu.setCustomId("string-select");
    stringSelectMenu.addOption(new StringSelectOption().setLabel("Option 1").setValue("option_1"));
    stringSelectMenu.setOptions([
    { label: "Option 2", value: "option_2" },
    { label: "Option 3", value: "option_3" },
    ]);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    data: Omit<APIStringSelectComponent, "options"> & {
        options: StringSelectOption[];
    }

    Methods

    • 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.