Skip to content

Helpers work wherever the bot takes a template, such as a command reply, a timer or a Discord notification. Each field accepts its own set, so check where a helper works before you copy it. If you have not used braces in a reply yet, read Variables and templates first.

A viewer can use some helpers in their own text too: the words after a command, or a reward input. That needs the Viewer Templates switch on Features, which is on by default, and the viewer needs the template permission. Subscribers and higher hold that permission by default. To change who holds it, open the Actions tab on Permissions and type reward:input:template in Search actions. To lower it as far as Everyone, choose Everyone in the role picker on the action’s row. To give it to one viewer only, the broadcaster types !permit @viewername reward:input:template in chat, with the viewer’s own name in place of viewername.

Find a helper in the field

The quickest way to find a helper is inside the field you are writing. Type { and the field suggests the helpers it accepts. Arrow keys move through the list, and Enter or Tab inserts the helper. In an event response, the suggestions hold only the values that event carries, so a raid response does not offer the tier of a sub.

Most fields also have a Show all helpers button next to the field label. Type in Search helpers to narrow the list, and select a helper to insert it where your cursor was. Each row shows a sample of what the helper gives, such as “Becomes HELLO” for the helper that writes text in capitals. Your line in an event response and the items of a list in a pipeline step have no Show all helpers button. In a Discord rule, only Message and the embed Description have it. The other embed fields, such as Title, Footer and Button label, do not. On Your line in an event response, select the info icon next to the label: “You can use:” names the values that event carries.

When the field holds a helper it does not accept, a note appears under it: “Not a known helper here”, with the name. The note does not stop you typing, but saving does. When you save, the bot checks each helper in the field and refuses to save one that does not belong there. Its message names the helper. For a helper that works in other fields, it also names those fields. For a typo, it suggests the closest name.

A helper can pass that check and still have nothing to give when the reply goes out, for example because its input is missing. The bot then leaves it in the reply exactly as you typed it, braces and all.

Find a helper for the job

You want to includeLook up
The person who used the commandUser helpers
Someone named after the commandTarget helpers
Words a viewer typed after the commandCommand word helpers
The current game, title, or uptimeStream helpers
Details of a follow, subscription, raid, or rewardEvent helpers
Different wording depending on a valueCondition helpers
One choice from several possible answersRandom helpers
Pronouns and matching verbsUser helpers or Target helpers

Most helpers belong to a page by the first part of their name. All {user.*} helpers are on the User helpers page, and all {text.*} helpers are on the Text helpers page. A few names share a page with a related type:

  • Prediction helpers are on the Poll and prediction helpers page.
  • The {tts.*} helpers and the {link.*} share link helpers are on the Chat helpers page.
  • The bare {link} helper, a profile link, is on the User helpers page.
  • The meter helpers are on the Math helpers page.
  • The count.* helpers are on the List and counter helpers page.
  • The pick, roll and chance helpers are on the Random helpers page.
  • The values an event carries, such as {bits}, {tier} and {months}, are on the Event helpers page.

Read a helper row

A helper page lists its helpers in tables with the columns Helper, What it gives and Example.

The Helper column shows the name in braces. A name with <n> in it stands for a numbered family, not text to paste. {args.<n>} means a word by its place after the command, so {args.1} is the first word and {args.2} the second.

Some helpers take an input, which goes after a colon: {text.upper:hello} gives HELLO. A pipe separates two or more inputs: {text.repeat:3|ha} gives hahaha. A few helpers name an input, with the name, an equals sign and the value. In {text.cut:hello world|max=8}, max=8 sets the longest result to 8 characters, so it gives hello w…. The Example column shows how to type each helper and what it gives, so copy it with its braces and change the input to your own.

Most pages add a fourth column, Use in, that lists the fields that accept the helper:

  • commands: a command reply.
  • event responses: a reply to a follow, sub, raid or other event.
  • timers: a timer message.
  • pipelines: a step in a pipeline.
  • Discord: a Discord notification.
  • webhooks: the body of an outbound webhook.
  • viewer text: the text a viewer types after a command or in a reward input.

The Chat activity, Ad break, Command word, Bot, Channel, Charity and Chat helper pages have no Use in column. On those pages, the text above the tables says where the helpers work.

Say you find {bits} on the Event helpers page and want it in a command. Its Use in cell reads “event responses, pipelines, Discord”, with no commands. A command has no cheer behind it, so the bot refuses to save that reply and says where {bits} works. To thank a viewer for a cheer, put {bits} in the Cheer event response on Event responses instead. In a command, use {stream.bits.total} for all bits cheered this stream, or {user.stats.bits} for the bits the viewer cheered in this channel.

All helper pages

To write one reply that reads right for he, she, they and other pronouns, read Pronouns in templates. For nested helpers, literal braces and HTML output, go back to Variables and templates.