Search...

ComponentBuilder

export declare abstract class ComponentBuilder<DataType extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>> implements JSONEncodable<AnyAPIActionRowComponent> 
export declare abstract class ComponentBuilder<DataType extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>> implements JSONEncodable<AnyAPIActionRowComponent> 
Represents a discord component
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