Variable
Variable
Set, increment, decrement, append, or remove from a variable
Fields
| Field | Type | Required | Description |
|---|---|---|---|
scope | enum: run | user | guild | yes | run is per-invocation only. |
name | string | yes | Must start with a letter or underscore, then letters/digits/underscores. |
operation | enum: set | increment | decrement | delete | append | remove | yes | |
value | any, or {path} when valueMode is 'variable' | no | Required for every operation except 'delete'. |
valueMode | enum: fixed | variable | no | Defaults to 'fixed'. 'variable' requires value.path to reference user/vars/event/guild/now. |
Example
{
"id": "01H8XGJVBWX7Y5Z3K9M2N4P6Q1",
"type": "variable",
"scope": "run",
"name": "counter",
"operation": "set",
"value": 1
}Updated about 14 hours ago
Did this page help you?
