Search...

ComponentBuilder

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> 
Represents a discord component

Implements

JSONEncodable<AnyAPIActionRowComponent
NameConstraintsOptionalDefaultDescription
DataTypePartial<APIBaseComponent<ComponentTypeYesAPIBaseComponent<ComponentType>None

constructor(data)

Constructs a new instance of the ComponentBuilder class
NameTypeOptionalDescription
dataPartial<DataType>NoNone
Readonly

data

:

Partial<DataType>

The API data associated with this component

toJSON()

:

AnyAPIActionRowComponent