---
updatedAt: 2026-09-01T16:18:51.000Z
---

Fetch the complete documentation index at: https://developers.wabbit.gg/llms.txt. Use this file to discover all available pages before exploring further. Append .md to any documentation page URL to get its markdown version.

# 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

```json
{
  "id": "01H8XGJVBWX7Y5Z3K9M2N4P6Q1",
  "type": "variable",
  "scope": "run",
  "name": "counter",
  "operation": "set",
  "value": 1
}
```