Preview environment

class TextDisplayComponent

export class TextDisplayComponent extends Component<APITextDisplayComponent>

Represents a text display component

readonly
content : string

The content of this text display

The API data associated with this component

Inherited from: Component

readonly
id : APITextDisplayComponent['id']

The id of this component

Inherited from: Component

readonly
type : APITextDisplayComponent['type']

The type of the component

Inherited from: Component

equals() : boolean

Whether or not the given components are equal

Inherited from: Component

Returns the API-compatible JSON for this component

Inherited from: Component