seyfert
    Preparing search index...

    Class ChannelSelectMenu

    Represents a Select Menu for selecting channels.

    const channelSelectMenu = new ChannelSelectMenu();
    channelSelectMenu.setCustomId("channel-select");
    channelSelectMenu.addDefaultChannels("123456789", "987654321");
    channelSelectMenu.setChannelTypes([ChannelType.GuildText, ChannelType.GuildVoice]);

    Hierarchy (View Summary)

    • SelectMenu<APIChannelSelectComponent>
      • ChannelSelectMenu
    Index

    Constructors

    Properties

    data: Partial<TYPE> = {}

    Methods

    • Adds default selected channels to the select menu.

      Parameters

      • ...channels: RestOrArray<string>

        Channel IDs to be added as default.

      Returns this

      The current ChannelSelectMenu instance.

    • Sets the types of channels that can be selected in the menu. types - The types of channels.

      Parameters

      • types: ChannelType[]

      Returns this

      The current ChannelSelectMenu instance.

    • Sets the default selected channels for the select menu.

      Parameters

      • ...channels: RestOrArray<string>

        Channel IDs to be set as default.

      Returns this

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