export class Component<RawComponentData extends AnyComponent = AnyComponent>
Represents a component
Type Parameters
optionalAnyComponent = AnyComponent RawComponentData? extends
readonlyReadonly<RawComponentData> data :
The API data associated with this component
readonlyRawComponentData['type'] type :
The type of the component
equalsother: this | RawComponentData) : boolean (
other: this | RawComponentData
Whether or not the given components are equal
toJSONRawComponentData () :
Returns the API-compatible JSON for this component