Roadie

Sub upgraded event

Automation · 4 min read ·

A viewer turned a gifted or Prime sub into a paid one.

Sub upgraded (twitch.sub_upgrade) — A viewer turned a gifted or Prime sub into a paid one.

Source: twitch. Selection: Events picker. Before it can fire: Chat 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).
  • {from} — From; choice; required; A gift or Prime; choices: A gift, Prime; sample: A gift.
  • {gifter} — Gifter; person; optional; For a gift — empty when they gifted anonymously; sample: SalsaQueen (@salsaqueen).
  • {tier} — Tier; choice; optional; For Prime, the tier they moved to; choices: 1, 2, 3, Prime.
  • {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.notice_type} — Notice type; choice; optional; gift_paid_upgrade for a gift, prime_paid_upgrade for Prime; choices: gift_paid_upgrade, prime_paid_upgrade.
  • {twitch.gift_paid_upgrade.gifter_user_id} — Gifter id; text; optional; Twitch’s id for the gifter, for a gift; sample: 1002.
  • {twitch.gift_paid_upgrade.gifter_user_login} — Gifter login; text; optional; The login of the gifter, for a gift, lower case; sample: salsaqueen.
  • {twitch.gift_paid_upgrade.gifter_user_name} — Gifter display name; text; optional; The display name of the gifter, for a gift; sample: SalsaQueen.
  • {twitch.gift_paid_upgrade.gifter_is_anonymous} — Gifter anonymous; flag; optional; For a gift, whether the gifter hid their name.
  • {twitch.prime_paid_upgrade.sub_tier} — Sub tier code; choice; optional; For Prime, the tier they moved to. Twitch’s tier code: 1000 is Tier 1, 2000 is Tier 2, 3000 is Tier 3; choices: 1000, 2000, 3000.
  • {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).
  • {from} — From.
  • {gifter} — Gifter.
  • {gifter.login} — Gifter — their login, for links.
  • {gifter.name} — Gifter — their display name.
  • {gifter.id} — Gifter — their Twitch id.
  • {gifter.avatar} — Gifter — their avatar picture, for a Discord card (picture address).
  • {tier} — Tier.
  • {twitch.chatter_user_id} — Chatter id.
  • {twitch.chatter_user_login} — Chatter login.
  • {twitch.chatter_user_name} — Chatter display name.
  • {twitch.notice_type} — Notice type.
  • {twitch.gift_paid_upgrade.gifter_user_id} — Gifter id.
  • {twitch.gift_paid_upgrade.gifter_user_login} — Gifter login.
  • {twitch.gift_paid_upgrade.gifter_user_name} — Gifter display name.
  • {twitch.gift_paid_upgrade.gifter_is_anonymous} — Gifter anonymous.
  • {twitch.prime_paid_upgrade.sub_tier} — Sub tier code.
  • {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