class ComponentBuilder
implements
JSONEncodable<AnyAPIActionRowComponentdeclare abstract class ComponentBuilder<DataType extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>> implements JSONEncodable<AnyAPIActionRowComponent>
Represents a discord component
Constructors
data: Partial<DataType>)
constructor(data: Partial<DataType>
Constructs a new instance of the ComponentBuilder
class
Type Parameters
optionalPartial<APIBaseComponent<ComponentType = APIBaseComponent<ComponentType> DataType? extends
readonlyPartial<DataType> data :
The API data associated with this component