Execution limits
PokkanStrings bounds the work of each execution so that an expression or loop cannot occupy the bot indefinitely. Reaching a limit stops evaluation and prevents the message from being sent. Reduce the work in the affected field and save the Kit before trying again.
Work per field and per message
Section titled “Work per field and per message”Each field is evaluated separately, but its work also counts towards a limit for the whole message. Splitting a loop across several fields does not remove that overall limit.
| Resource | Current limit |
|---|---|
| Evaluation steps in one field | 20,000 |
| Evaluation steps across the whole message | 50,000 |
| Loop iterations in one field | 1,000 |
| Function calls in one field | 500 |
| Collection entries charged in one field | 4,096 |
| Text produced by one field | 16,384 UTF-16 units |
A step measures evaluation work rather than characters produced. Nested loops can therefore reach the limit even when their output is short. These are internal Pokkan limits, with no Kit settings to configure.
What Discord accepts
Section titled “What Discord accepts”Evaluated text must still fit its destination field. For example, Discord allows up to 2,000 units in ordinary message content, 6,000 across all embed text and 4,000 across V2 Text Displays. Labels, polls and other elements have their own limits, described in their element references.
Pokkan validates the complete message after evaluation. If a field exceeds its limit, the send is rejected rather than silently cutting the text.
Lengths use UTF-16 units, where some characters, including many emoji, occupy two units. If the text appears short enough but a character limit is still reached, check those characters in the field identified by the error.