Skip to content

Fixing errors

An invalid expression stops delivery before publishing. If Embed 2 › Title is shown, open the second embed’s title and check the expression near the reported position. For an error in an applied Kit, the notice uses its name if that Kit is available in the editor and describes the field either way.

Problem What to check
Unknown variable in an expression Spelling, context roots and local scope
Unknown function Use the names in the two function reference pages
Wrong argument count/kind Required parameters and typed entity versus ID text
Missing delimiter Close quotes, parentheses, brackets and blocks
Invalid conversion Write numbers with a decimal point and keep IDs out of arithmetic
Function failure Check the accepted inputs, such as the number of $round digits
Kit or subkit not found Check the literal name, server collection, and saved target
Circular Kit reference Look for a target that applies a Kit already in the chain
Invalid final message Shorten the generated content or repair the affected component

For example, this call uses a name that is not in the function catalog:

$notAFunction()

Diagnostic: unknown_function

The unknown_function code means you need to correct the call’s name. Check the text and number or Discord reference for the function you intended to use.

An optional argument may not have been supplied even when its name is correct. Its value is then nil, and you can provide a fallback with ??, as shown in values and missing data.

An unknown reference reports a spelling or scope error in text and in expressions. Use $("@nickname") to display the spelling as text. An available name with no value yields nil.

Check the size of the generated text as well as the expression itself. A short loop can produce many lines, while nested loops can exhaust the allowed work even with a short result. The limits reference lists the current bounds and explains how they apply to fields.

A rendering rejection happens before the send to Discord, so you can correct the text, save and try again. If the notice says delivery is uncertain, check the channel first: Discord may have received the message even though Pokkan did not receive confirmation.

For an error in a component response, correct and save the Source. Future interactions will use that updated response, including interactions on messages already published.