Custom Commands
AuditScript
The full scripting language available in both Custom Commands and Automations.
AuditScript is a sandboxed scripting language built for Custom Commands and Automations. Full syntax reference and examples live at auditer.wtf/dashboard/[your-guild]/auditscript-docs.
What it supports#
- Variables (set, let), reassignment, all primitive types plus lists and objects
- String interpolation with ${...}
- Arithmetic, comparison, boolean, and membership operators
- if / else if / else, while, for-in loops, break, continue, stop
- Both { curly-brace } and then/end block syntax
- Standard library: random, string ops, list ops, JSON, math helpers
- Discord actions: reply, send, dm, add_role, timeout, ban, purge, and many more
- HTTP calls (private IPs blocked, optional allowlist via env)
Sandbox limits#
Operations
20,000 max per script run
Total runtime
5 seconds max
Loop iterations
500 max per loop
String size
4,000 chars max
List size
500 items max
HTTP response
128KB max
Docs page
The complete AuditScript reference lives at /dashboard/[your-guild]/auditscript-docs with introduction, syntax, variables, operators, control flow, string interpolation, built-in context, Discord actions, standard library, examples, and limits.