Lists & Helpers
arrayJoin
$arrayJoin — Joins the items with a separator (default , ).
Joins the items with a separator (default `, `).
Syntax
$arrayJoin[array;(separator)]
Parameters
- array (text, required) — Name of the array.
- separator (text, optional) — Separator.
Return Value
- string.
Usage
$arrayJoin[a;-] → "3-1-2"
Example
$arrayLoad[a;,;3,1,2]
$sendMessage[$arrayJoin[a;-]]
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.