Preview environment

class TextDisplayBuilder

external
declare class TextDisplayBuilder extends ComponentBuilder<APITextDisplayComponent>

Constructors

constructor()

Creates a new text display from API data.

readonlyexternal
data : Partial<APITextDisplayComponent>

The API data associated with this component.

Inherited from: ComponentBuilder

external
clearId() : this

Clears the id of this component, defaulting to a default incremented id.

Inherited from: ComponentBuilder

external
setContent(
content: string
) : this

Sets the text of this text display.

external
setId(
id: number
) : this

Sets the id (not the custom id) for this component.

Inherited from: ComponentBuilder

external
toJSON() : APITextDisplayComponent

Serializes this builder to API-compatible JSON data.