Skip to content
Lists & Helpers arrayUnique

$arrayUnique — Removes duplicates; stores the result in another array or returns JSON.

Removes duplicates; stores the result in another array or returns JSON.

Syntax

$arrayUnique[array;(other)]

Parameters

  • array (text, required) — Name of the array.
  • other (text, optional) — Array that receives the result.

Return Value

  • string.

Usage

$arrayUnique[a]

Example

$arrayLoad[a;,;3,1,2]
$sendMessage[$arrayUnique[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.