ComponentBuilder
Represents a discord component
declare abstract class ComponentBuilder<DataType extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>> implements JSONEncodable<AnyAPIActionRowComponent>
declare abstract class ComponentBuilder<DataType extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>> implements JSONEncodable<AnyAPIActionRowComponent>
Implements
JSONEncodable<AnyAPIActionRowComponent>constructor(data)
Constructs a new instance of the
ComponentBuilder
className | Type | Optional | Description |
---|---|---|---|
data | Partial<DataType> | No | None |
Readonly
data
:
Partial<DataType>
The API data associated with this component
Serializes this component to an API-compatible JSON object