Lists & Helpers
arraySplice
$arraySplice — Removes items from an index and optionally inserts others; returns the removed items as JSON.
Removes items from an index and optionally inserts others; returns the removed items as JSON.
Syntax
$arraySplice[array;index;deleteCount;(elements)]
Parameters
- array (text, required) — Name of the array.
- index (number, required) — Start index.
- deleteCount (number, required) — Items to remove.
- elements (text, optional) — Items to insert.
Return Value
- string.
Usage
$arraySplice[a;1;1] → ["1"]
Example
$arrayLoad[a;,;3,1,2]
$sendMessage[$arraySplice[a;1;1]]
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.