Class ComponentBuilder<DataType>Abstract

The base component builder that contains common symbols for all sorts of components.

Type Parameters

Hierarchy

Implements

Constructors

Properties

Methods

Constructors

Properties

data: Partial<DataType>

The API data associated with this component.

Methods

  • Serializes this builder to API-compatible JSON data.

    Returns AnyAPIActionRowComponent

    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