Roadie

Resub event

Automation · 4 min read ·

A viewer shared their resub in chat. Only a resub can carry a message.

Resub (twitch.resub) — A viewer shared their resub in chat. Only a resub can carry a message.

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 they chose to share; sample: 14.
  • {streak} — Streak; number; optional; Their streak, if they shared it; sample: 6.
  • {message} — Their message; viewer_text; optional; Their own words — read literally; sample: 14 months of nachos and counting.
  • {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.resub.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.resub.is_prime} — Prime; flag; optional; Whether the sub is Prime.
  • {twitch.resub.cumulative_months} — Months in all; number; required; Months subscribed in all; sample: 14.
  • {twitch.resub.streak_months} — Streak; number; optional; Months in a row, if they shared it; sample: 6.
  • {twitch.resub.duration_months} — Twitch duration months; number; optional; Twitch’s own number. Often not months paid at once: use Months in advance.
  • {roadie.resub.months_in_advance} — Months in advance; number; optional; Months they paid for at once: 3 or 6, empty otherwise.
  • {twitch.resub.is_gift} — A gift; flag; optional; Whether someone gifted this sub.
  • {twitch.resub.gifter_is_anonymous} — Gifter anonymous; flag; optional; Whether the gifter hid their name.
  • {twitch.resub.gifter_user_id} — Gifter id; text; optional; Twitch’s id for the gifter, for a gifted sub.
  • {twitch.resub.gifter_user_login} — Gifter login; text; optional; The login of the gifter, for a gifted sub, lower case.
  • {twitch.resub.gifter_user_name} — Gifter display name; text; optional; The display name of the gifter, for a gifted sub.
  • {twitch.message.text} — Message text; viewer_text; optional; Their own words — read literally; sample: 14 months of nachos and counting.
  • {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.
  • {streak} — Streak.
  • {message} — Their message.
  • {twitch.chatter_user_id} — Chatter id.
  • {twitch.chatter_user_login} — Chatter login.
  • {twitch.chatter_user_name} — Chatter display name.
  • {twitch.resub.sub_tier} — Sub tier code.
  • {twitch.resub.is_prime} — Prime.
  • {twitch.resub.cumulative_months} — Months in all.
  • {twitch.resub.streak_months} — Streak.
  • {twitch.resub.duration_months} — Twitch duration months.
  • {roadie.resub.months_in_advance} — Months in advance.
  • {twitch.resub.is_gift} — A gift.
  • {twitch.resub.gifter_is_anonymous} — Gifter anonymous.
  • {twitch.resub.gifter_user_id} — Gifter id.
  • {twitch.resub.gifter_user_login} — Gifter login.
  • {twitch.resub.gifter_user_name} — Gifter display name.
  • {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.

Browse events · Use fill-ins