Skip to content
Lists & Helpers arrayPush

$arrayPush — Appends items to an array.

Appends items to an array.

Syntax

$arrayPush[array;values]

Parameters

  • array (text, required) — Name of the array.
  • values (text, required) — Items to append.

Return Value

  • string.

Usage

$arrayPush[a;x;y]

Example

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