Loading

Back to Home

$addTextDisplay

$addTextDisplay adds a text display component to the message. Text displays show text in containers, sections, or standalone without a parent.

Syntax

$addTextDisplay[Content;(Container/Section ID)]

What happens

  1. $addTextDisplay creates a text display with the content you provide.
  2. If you provide a parent ID, it attaches to that container or section.
  3. The text appears in your message.

Example 1: Text display inside a container

$addContainer[main]
$addTextDisplay[Welcome to the server!;main]
$addTextDisplay[Here are the rules: no spamming.;main]
Result: Text display inside container

What happens:

  1. $addContainer creates a container.
  2. Two $addTextDisplay calls add text inside that container.

The container shows both lines of text, stacked vertically.

Example 2: Text display inside a section

$addSection[info]
$addTextDisplay[Check out this image;info]
$addThumbnail[https://example.com/image.png;Example;;info]
Result: Text display inside section

What happens:

  1. $addSection creates a section.
  2. $addTextDisplay adds text to the section.
  3. $addThumbnail provides the required accessory for the section.

The section shows the text with a thumbnail beside it.

Example 3: Standalone text (no parent)

$addTextDisplay[Hello, world!]
$addTextDisplay[This text has no container or section around it.]

What happens:

  1. Both $addTextDisplay calls omit the Container/Section ID parameter.
  2. Each text display appears on its own, not nested inside any parent component.

The text appears as plain message content without any container styling.

Common uses

See also