Variables
decrement
$decrement — Subtracts from a number variable and returns the new value
Subtracts from a number variable and returns the new value.
Syntax
$decrement[variable;(amount);(scope);(target);(guildID)]
Parameters
- variable (text, required) — The variable name.
- amount (number, optional) — Default: 1.
- scope (text, optional) — Same as
$increment. - target (ID, optional) — Same as
$increment. - guildID (ID, optional) — Same as
$increment.
Return Value
- number.
Usage
$decrement[coins;10]
Example
$sendMessage[$decrement[coins;10]]
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.