Abstract
The base component builder that contains common symbols for all sorts of components.
Implements
JSONEncodable<AnyAPIActionRowComponent>Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
DataType | Partial<APIBaseComponent<ComponentType>> | Yes | APIBaseComponent<ComponentType> | The type of internal API data that is stored within the component |
constructor(data)
Constructs a new kind of component.
Name | Type | Optional | Description |
---|---|---|---|
data | Partial<DataType> | No | The data to construct a component out of |
Abstract
Serializes this builder to API-compatible JSON data.