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