class ComponentBuilder
implements
JSONEncodable<AnyAPIActionRowComponent>declare 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
The type of internal API data that is stored within the component
readonlyPartial<DataType> data :
The API data associated with this component
toJSONAnyAPIActionRowComponent () :
Serializes this component to an API-compatible JSON object