Category
KAL v2 language
The Kharat Automation Language: syntax, triggers, actions, state and limits β with compiled examples.
KAL v2 overview
What the Kharat Automation Language is, how scripts compile and run, and the shape every program follows.
KAL syntax & structure
The anatomy of a KAL v2 program: version header, AUTOMATION block, CONFIG fields, declarations, constants and functions.
KAL expressions & built-ins
Types, literals, the full operator set with precedence, comparison semantics and every built-in function.
KAL control flow
IF/ELSE, WHILE, FOR EACH, BREAK/CONTINUE, TRY/CATCH/FINALLY, THROW and ABORT β with their exact shapes.
KAL triggers & context
WHEN COMMAND, WHEN EVENT, WHEN INTERACTION and SCHEDULE β the complete event list and every context variable each trigger provides.
KAL actions
Every Discord action KAL v2 can perform, with exact statement syntax, permission needs and result capture.
KAL embeds & components
SEND EMBED fields, action rows, buttons, select menus and modals β the exact syntax and every Discord-side limit.
KAL state
Durable per-script memory: STATE GET/PUT/APPEND/INCREMENT/DECREMENT/DELETE, size limits and rollback semantics.
KAL modules & IMPORT
Sharing code between scripts with IMPORT: what modules may contain, how resolution works and every M-error.
KAL diagnostics & limits
Every error family with real codes, the diagnostic shape, and the complete table of runtime limits.