Math & Text
encodeURIComponent
$encodeURIComponent — Encodes a URL part (also encodes :/?#&=).
Encodes a URL part (also encodes `:/?#&=`).
Syntax
$encodeURIComponent[text]
Parameters
- text (text, required) — The text.
Return Value
- string.
Usage
$encodeURIComponent[a&b] → "a%26b"
Example
$sendMessage[$encodeURIComponent[a&b]]
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.