Control Flow
callLocalFunction
$callLocalFunction — Calls a local function
Calls a local function
Syntax
$callLocalFunction[name;(args...)]
Parameters
- name (text, required) — The local function name
- args… (text, optional) — The args to call this local function with
Return Value
- Unknown.
Usage
$callLocalFunction[name;(args...)] → result
Example
$sendMessage[$localFunction[greet;Hello $env[who];who]$callLocalFunction[greet;Ana]]
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.