$addSection

Components v2

Adds a section to the message.

Syntax

$addSection[Section name;(Container name)]

It’s important!

The section must contain all section components, otherwise the function will not work!

Parameters

  • Section name (Type: String || Flag: Required): Name for attaching other section components to the section.

Warning

You can’t have multiple sections and containers with the same name in one message. So for example, you can’t have two sections with the name set to section.

  • Container name (Type: String || Flag: Optional): To which container body should the section be attached.

Section Components

Limit

Only 3 components can be added to the section.

Example

$nomention
$addSection[section]
$addTextDisplay[Hello world!;section]
$addThumbnail[$authorAvatar;;;section]

What is this?