class TextDisplayBuilder
extends
ComponentBuilder<APITextDisplayComponent>declare class TextDisplayBuilder extends ComponentBuilder<APITextDisplayComponent>
Constructors
data?: Partial<APITextDisplayComponent>)
constructor(data?: Partial<APITextDisplayComponent>
Creates a new text display from API data.
protectedreadonlyPartial<APITextDisplayComponent> data :
Clears the id of this component, defaulting to a default incremented id.
Inherited from: ComponentBuilder
setContentcontent: string) : this (
content: string
Sets the text of this text display.
toJSONvalidationOverride?: boolean) : APITextDisplayComponent (
validationOverride?: boolean
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.