Formatting
codeBlock
$codeBlock — Puts the text in a code block, with an optional language.
Puts the text in a code block, with an optional language.
Syntax
$codeBlock[text;(language)]
Parameters
- text (text, required) — The text.
- language (text, optional) — Syntax highlighting language.
Return Value
- string.
Usage
$codeBlock[x;js] → a js code block
Example
$sendMessage[$codeBlock[x;js]]
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.