Components & Interactions
endSection
$endSection
$endSection closes the section opened with $addSection[]. A section stays open until a separator, a select menu, a container or another section; a text display written after it would join the section (a section holds 1 to 3 texts). With $endSection, the next text display stands on its own.
Syntax
$endSection
Return value
Returns an empty string. It adds no component.
Examples
$addContainer[;#5865F2]
$addSection[]
$addTextDisplay[**Setting**⏎-# Current value]
$addSectionButton[edit;Edit;secondary]
$endSection
$addTextDisplay[-# Page 1 / 2]
Notes
See also $addSection[], $addSectionButton[].
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.