Hierarchy

  • ChannelSelectMenuBuilder
    • ChannelSelectMenuBuilder

Constructors

Properties

data: Partial<APIChannelSelectComponent>

The API data associated with this component.

Methods

  • Adds channel types to this select menu.

    Parameters

    • Rest...types: RestOrArray<ChannelType>

      The channel types to use

    Returns this

  • Adds default channels to this auto populated select menu.

    Parameters

    • Rest...channels: RestOrArray<string>

      The channels to add

    Returns this

  • Sets channel types for this select menu.

    Parameters

    • Rest...types: RestOrArray<ChannelType>

      The channel types to use

    Returns this

  • Sets the custom id for this select menu.

    Parameters

    • customId: string

      The custom id to use

    Returns this

  • Sets default channels for this auto populated select menu.

    Parameters

    • Rest...channels: RestOrArray<string>

      The channels to set

    Returns this

  • Sets whether this select menu is disabled.

    Parameters

    • Optionaldisabled: boolean

      Whether this select menu is disabled

    Returns this

  • Parameters

    • execute: ChannelSelectMenuInteractionExecute

    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

  • {@inheritDoc BaseSelectMenuBuilder.toJSON}

    Returns APIChannelSelectComponent

  • Parameters

    • other: APIChannelSelectComponent | JSONEncodable<APIChannelSelectComponent>

    Returns ChannelSelectMenuBuilder