Image & Canvas
canvasBuffer
$canvasBuffer — Stores the canvas as base64 in a variable read with $env[name].
Stores the canvas as base64 in a variable read with $env[name].
Syntax
$canvasBuffer[(canvas);variable;(format)]
Parameters
- canvas (String, optional) — Canvas name (empty: the current canvas)
- variable (String, required) — Variable name
- format (String, optional) — png (default), jpeg or gif
Return Value
- None.
Usage
$canvasBuffer[canvas;variable;format] → result
Example
$sendMessage[$canvasBuffer[canvas;variable;format]]
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.