class TextDisplayBuilder

declare class TextDisplayBuilder extends ComponentBuilder<APITextDisplayComponent>

Constructors

constructor()

Creates a new text display from API data.

protectedreadonly
data : Partial<APITextDisplayComponent>

clearId() : this

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

Inherited from: ComponentBuilder

setContent(
content: string
) : this

Sets the text of this text display.

setId(
id: number
) : this

Sets the id of this component.

Inherited from: ComponentBuilder

toJSON(
validationOverride?: boolean
) : APITextDisplayComponent

Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.