Preview environment

class LabelComponent

export class LabelComponent extends Component<APILabelComponent>

Represents a label component

The component in this label

readonly
data : Readonly<APILabelComponent>

The API data associated with this component

Inherited from: Component

readonly
description : string | null

The description of this component

readonly
id : APILabelComponent['id']

The id of this component

Inherited from: Component

readonly
label : string

The label of the component

readonly
type : APILabelComponent['type']

The type of the component

Inherited from: Component

equals(
other: this | APILabelComponent
) : boolean

Whether or not the given components are equal

Inherited from: Component

toJSON() : APILabelComponent

Returns the API-compatible JSON for this component