Variables
env
$env — Reads a local variable, or a key of its JSON value.
Reads a local variable, or a key of its JSON value.
Syntax
$env[name;(key)]
Parameters
- name (text, required) — Variable name.
- key (text, optional) — Key or index to read inside the value (repeatable).
Return Value
- string.
Usage
$env[user;name] → "Ana"
Example
$let[u;{"name":"Ana"}]
$sendMessage[$env[u;name]]
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.