Skip to content

TextDisplay

Implementation of Discord’s Text Display component as a Luau builder.

https://discord.com/developers/docs/components/reference#text-display

TextDisplay.content  :: string?

The markdown text content to display.

TextDisplay : setContent ( content )  -> TextDisplay

Sets the markdown text content to display.

Parameters

content: string

Returns

TextDisplay
TextDisplay : build ( )  -> JSON

Responsible for building the TextDisplay JSON that can be parsed by the Discord API.

Returns

JSON
TextDisplay . new ( resource )  -> TextDisplay

Responsible for creating a new TextDisplay.

Parameters

resource: {
{ content: string?, } }

Returns

TextDisplay