Where PokkanStrings runs
Pokkan evaluates the message when you send to a channel from the editor, run a bot command, or interact with a component. The result can change with the person, channel, or supplied inputs.
The Kit keeps the original text, such as Hi @user.name!, so the next invocation can use another name without an edit to the message.
Fields evaluated
Section titled “Fields evaluated”Use PokkanStrings in ordinary content, embed text, Text Displays, and supported component labels and prompts. It also runs in poll questions and answers, media descriptions, and String Select option labels and descriptions.
Image and link addresses, IDs, attachment metadata and internal option values keep their authored text. These identify resources or actions and are not fields for writing PokkanStrings.
Each field receives the same action’s data but calculates its own local variables. If you use $set in an embed description, keep the text that reads that variable in the description too; the ordinary message content will not receive it.
Preview, webhooks and sent-message edits
Section titled “Preview, webhooks and sent-message edits”The editor preview shows the original writing so you can edit it. Direct webhook delivery sends that same writing, including anonymous use. To check the result of @user.name, run the Kit through the bot as in your first dynamic message.
Editing a published message changes that post using the text entered in the editor, without evaluating PokkanStrings. Changing the saved Kit also leaves earlier posts as they are; new invocations use the current definition.
Before sending
Section titled “Before sending”Pokkan checks the result against Discord’s limits after evaluation. A generated Button label, for example, still has to fit the button. See how to locate a rendering error.
Component responses use the current saved Source, including components in old messages. That response is evaluated when someone interacts, using their invocation data.