Skip to content
HTTP & JSON createQueryParams

$createQueryParams — Builds a query string from name and value pairs.

Builds a query string from name and value pairs.

Syntax

$createQueryParams[name;value]

Parameters

  • name (text, required) — Parameter name.
  • value (text, required) — Parameter value (then more pairs).

Return Value

  • string.

Usage

$createQueryParams[a;1;b;x y] → "a=1&b=x+y"

Example

$sendMessage[$createQueryParams[a;1;b;x y]]

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.