class TextDisplayBuilder
extends
ComponentBuilder<APITextDisplayComponent>declare class TextDisplayBuilder extends ComponentBuilder<APITextDisplayComponent>Constructors
constructor(data?: Partial<APITextDisplayComponent>)
data?: Partial<APITextDisplayComponent>
Creates a new text display from API data.
readonlydata : Partial<APITextDisplayComponent>
The API data associated with this component.
Inherited from: ComponentBuilder
Clears the id of this component, defaulting to a default incremented id.
Inherited from: ComponentBuilder
setContent(content: string) : this
content: string
Sets the text of this text display.
setId(id: number) : this
id: number
Sets the id (not the custom id) for this component.
Inherited from: ComponentBuilder
toJSON() : APITextDisplayComponent
Serializes this builder to API-compatible JSON data.