Skip to content
Image & Canvas imageBuffer

$imageBuffer — Stores an image as base64 in a variable read with $env[name].

Stores an image as base64 in a variable read with $env[name].

Syntax

$imageBuffer[variable;path]

Parameters

  • variable (String, required) — Variable name
  • path (String, required) — Image source

Return Value

  • None.

Usage

$imageBuffer[variable;path] → result

Example

$sendMessage[$imageBuffer[variable;path]]

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.