Preview environment
class LabelComponent
extends
Component<APILabelComponent>export class LabelComponent extends Component<APILabelComponent>
Represents a label component
StringSelectMenuComponent | TextInputComponent component :
The component in this label
readonlyReadonly<APILabelComponent> data :
The API data associated with this component
Inherited from: Component
readonlystring label :
The label of the component
equalsother: this | APILabelComponent) : boolean (
other: this | APILabelComponent
Whether or not the given components are equal
Inherited from: Component
toJSONAPILabelComponent () :
Returns the API-compatible JSON for this component