TextDisplay

Represents a text display component builder. Used to display simple text content.

Signature

export declare class TextDisplay extends BaseComponentBuilder<APITextDisplayComponent>
JSDoc
Examples
const text = new TextDisplay().content('Hello, world!');

Properties

0

No properties.

Methods

3

Methods

setId(id: number): this;

Sets the ID for the text display component.

Parameters
id
The ID to set.
Returns

The updated TextDisplay instance.

setContent(content: string): this;

Sets the text content to display.

Parameters
content
The text content.
Returns

The updated TextDisplay instance.