Skip to content
Lists & Helpers arrayConcat

$arrayConcat — Joins several arrays; stores the result in another array, or returns JSON when the first argument is empty.

Joins several arrays; stores the result in another array, or returns JSON when the first argument is empty.

Syntax

$arrayConcat[other;arrays]

Parameters

  • other (text, required, may be empty) — Array that receives the result (empty to return JSON).
  • arrays (text, required) — Names of the arrays to join.

Return Value

  • string.

Usage

$arrayConcat[;a;b]

Example

$sendMessage[$arrayConcat[;a;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.