Lists & Helpers
listUnique
$listUnique — Removes duplicates and keeps the first occurrence of each item
Removes duplicates and keeps the first occurrence of each item.
Syntax
$listUnique[list;(separator)]
Parameters
- list (text, required) — The items.
- separator (text, optional) — The text between two items. Default:
,.\nmeans a new line.
Return Value
- string.
Usage
$listUnique[a,b,a,c,b] → "a,b,c"
Example
$sendMessage[$listUnique[a,b,a,c,b]]
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.