Class ActionRowBuilder<ComponentType>

Type Parameters

Hierarchy

  • ActionRowBuilder<ComponentType>
    • ActionRowBuilder

Constructors

Properties

components: ComponentType[]

The components within this action row.

The API data associated with this component.

Methods

  • Adds components to this action row.

    Parameters

    • Rest ...components: RestOrArray<ComponentType>

      The components to add

    Returns ActionRowBuilder<ComponentType>

  • Sets components for this action row.

    Parameters

    • Rest ...components: RestOrArray<ComponentType>

      The components to set

    Returns ActionRowBuilder<ComponentType>

  • Serializes this builder to API-compatible JSON data.

    Returns APIActionRowComponent<ReturnType<ComponentType["toJSON"]>>

    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