Class ChannelSelectMenuBuilder

Hierarchy

  • ChannelSelectMenuBuilder
    • ChannelSelectMenuBuilder

Constructors

Properties

The API data associated with this component.

Methods

  • Adds default channels to this auto populated select menu.

    Parameters

    • Rest ...channels: RestOrArray<string>

      The channels to add

    Returns ChannelSelectMenuBuilder

  • Sets the custom id for this select menu.

    Parameters

    • customId: string

      The custom id to use

    Returns ChannelSelectMenuBuilder

  • Sets default channels for this auto populated select menu.

    Parameters

    • Rest ...channels: RestOrArray<string>

      The channels to set

    Returns ChannelSelectMenuBuilder

  • Sets whether this select menu is disabled.

    Parameters

    • Optional disabled: boolean

      Whether this select menu is disabled

    Returns ChannelSelectMenuBuilder

  • Sets the maximum values that must be selected in the select menu.

    Parameters

    • maxValues: number

      The maximum values that must be selected

    Returns ChannelSelectMenuBuilder

  • Sets the minimum values that must be selected in the select menu.

    Parameters

    • minValues: number

      The minimum values that must be selected

    Returns ChannelSelectMenuBuilder

  • Sets the placeholder for this select menu.

    Parameters

    • placeholder: string

      The placeholder to use

    Returns ChannelSelectMenuBuilder

  • Serializes this builder to API-compatible JSON data.

    Returns APIChannelSelectComponent

    Remarks

    This method runs validations on the data before serializing it. As such, it may throw an error if the data is invalid.

Generated using TypeDoc