Hierarchy

  • MentionableSelectMenuBuilder
    • MentionableSelectMenuBuilder

Constructors

Properties

data: Partial<APIMentionableSelectComponent>

The API data associated with this component.

Methods

  • Adds default roles to this auto populated select menu.

    Parameters

    • Rest...roles: RestOrArray<string>

      The roles to add

    Returns this

  • Adds default users to this auto populated select menu.

    Parameters

    • Rest...users: RestOrArray<string>

      The users to add

    Returns this

  • Adds default values to this auto populated select menu.

    Parameters

    • Rest...values: RestOrArray<APISelectMenuDefaultValue<Role> | APISelectMenuDefaultValue<User>>

      The values to add

    Returns this

  • Sets the custom id for this select menu.

    Parameters

    • customId: string

      The custom id to use

    Returns this

  • Sets default values for this auto populated select menu.

    Parameters

    • Rest...values: RestOrArray<APISelectMenuDefaultValue<Role> | APISelectMenuDefaultValue<User>>

      The values to set

    Returns this

  • Sets whether this select menu is disabled.

    Parameters

    • Optionaldisabled: boolean

      Whether this select menu is disabled

    Returns this

  • Parameters

    • execute: MentionableSelectMenuInteractionExecute

    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 ComponentBuilder.toJSON}

    Returns APIMentionableSelectComponent

  • Parameters

    • other: APIMentionableSelectComponent | JSONEncodable<APIMentionableSelectComponent>

    Returns MentionableSelectMenuBuilder