$addContainer
Components v2
Adds a container body to the message.
Syntax
$addContainer[Container name;(Color hex;Spoiler?)]
The container body must contain container components, otherwise the function will not work!
Parameters
Container name(Type: String || Flag: Required): Name for attaching other container components to the container body.
You can’t have multiple containers and sections with the same name in one message. So for example, you can’t have two containers with the name set to Container1.
-
Color hex(Type: Color || Flag: Vacantable): The color hex to set the container border color as. You can also use color integer number. -
Spoiler?(Type: Bool || Flag: Optional): Will the container have a spoiler effect?
Container Components
Example
$nomention
$addContainer[Container1;#673ab7;false]
$addTextDisplay[Hello world!;Container1]
How $addTextDisplay[] works?