Sub event
Automation · 3 min read ·
A new subscription, as Twitch announces it in chat.
Sub (twitch.sub) — A new subscription, as Twitch announces it in chat.
Source: twitch. Selection: Events picker. Before it can fire: Support log switched on.
Start a flow
Select this event in Automation where its selection flow is available, then add any conditions and actions. A real occurrence matching the event starts the flow. The Test panel can supply representative sample fields, but Run test applies every action for real. Use only harmless actions while learning the trigger, and inspect its recent run before enabling effectful steps.
Trigger fields
These are the typed fields declared for this event. An optional value may be absent in a particular run; confirm a real event before relying on it.
{user}— Username; person; required; Their name and avatar; sample: NachoAverage (@nachoaverage).{tier}— Tier; choice; required; 1, 2, 3 or Prime; choices:1,2,3,Prime; sample:1.{months}— Months; number; required; Months subscribed, counting this one; sample:1.{twitch.chatter_user_id}— Chatter id; text; required; Twitch’s id for the chatter; sample:1001.{twitch.chatter_user_login}— Chatter login; text; required; The login of the chatter, lower case; sample:nachoaverage.{twitch.chatter_user_name}— Chatter display name; text; required; The display name of the chatter; sample:NachoAverage.{twitch.sub.sub_tier}— Sub tier code; choice; optional; Twitch’s tier code: 1000 is Tier 1, 2000 is Tier 2, 3000 is Tier 3; choices:1000,2000,3000.{twitch.sub.is_prime}— Prime; flag; optional; Whether the sub is Prime.{twitch.sub.duration_months}— Twitch duration months; number; optional; Twitch’s own number. Often not months paid at once: use Months in advance.{roadie.sub.months_in_advance}— Months in advance; number; optional; Months they paid for at once: 3 or 6, empty otherwise.{roadie.sub.months}— Months; number; required; Months subscribed, counting this one; sample:1.{twitch.message.text}— Message text; viewer_text; optional; The words they shared it with — read literally.{twitch.system_message}— Twitch’s line; text; optional; Twitch’s own sentence for the notice.{twitch.message_id}— Message id; text; optional; Twitch’s id for the chat line.{twitch.color}— Name color; text; optional; The chatter’s name color, as #RRGGBB. Empty when unset.{twitch.badges}— Badges; text; optional; The chatter’s badges as set/version, comma-separated: subscriber/12,moderator/1.
Fill-ins offered for this trigger
This is the editor’s event-specific fill-in list for this trigger. Person fields also expose their login, display name, Twitch ID and avatar address. Shared channel fill-ins are available separately.
{user}— Username.{user.login}— Username — their login, for links.{user.name}— Username — their display name.{user.id}— Username — their Twitch id.{user.avatar}— Username — their avatar picture, for a Discord card (picture address).{tier}— Tier.{months}— Months.{twitch.chatter_user_id}— Chatter id.{twitch.chatter_user_login}— Chatter login.{twitch.chatter_user_name}— Chatter display name.{twitch.sub.sub_tier}— Sub tier code.{twitch.sub.is_prime}— Prime.{twitch.sub.duration_months}— Twitch duration months.{roadie.sub.months_in_advance}— Months in advance.{roadie.sub.months}— Months.{twitch.message.text}— Message text.{twitch.system_message}— Twitch’s line.{twitch.message_id}— Message id.{twitch.color}— Name color.{twitch.badges}— Badges.
Check a run
Open the flow’s run log after a real event or a safe test. Check that the expected event fired and that its conditions matched. A connector or upstream service can prevent a real event from arriving even when a sample test succeeds.