Roadie

Gift sub event

Automation · 4 min read ·

One sub gifted to one viewer. The single gifts inside a gift bomb never fire this.

Gift sub (twitch.gift_sub) — One sub gifted to one viewer. The single gifts inside a gift bomb never fire this.

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} — Gifter; person; optional; The gifter — missing when they gifted anonymously; sample: NachoAverage (@nachoaverage).
  • {recipient} — Recipient; person; required; The viewer who got the sub; sample: SalsaQueen (@salsaqueen).
  • {tier} — Tier; choice; required; 1, 2, 3 or Prime; choices: 1, 2, 3, Prime; sample: 1.
  • {anonymous} — Anonymous; flag; required; Whether the gifter hid their name; sample: false.
  • {total} — Their gifts here; number; optional; Subs this gifter has given in this channel to date, counting these; sample: 3.
  • {twitch.chatter_user_id} — Chatter id; text; optional; Twitch’s id for the chatter; sample: 1001.
  • {twitch.chatter_user_login} — Chatter login; text; optional; The login of the chatter, lower case; sample: nachoaverage.
  • {twitch.chatter_user_name} — Chatter display name; text; optional; The display name of the chatter; sample: NachoAverage.
  • {twitch.sub_gift.recipient_user_id} — Recipient id; text; required; Twitch’s id for the viewer who got the sub; sample: 1002.
  • {twitch.sub_gift.recipient_user_login} — Recipient login; text; required; The login of the viewer who got the sub, lower case; sample: salsaqueen.
  • {twitch.sub_gift.recipient_user_name} — Recipient display name; text; required; The display name of the viewer who got the sub; sample: SalsaQueen.
  • {twitch.sub_gift.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.chatter_is_anonymous} — Anonymous; flag; required; Whether the gifter hid their name; sample: false.
  • {twitch.sub_gift.cumulative_total} — Their gifts here; number; optional; Subs this gifter has given in this channel to date; sample: 3.
  • {twitch.sub_gift.duration_months} — Months gifted; number; optional; How many months the gift lasts.
  • {twitch.sub_gift.community_gift_id} — Community gift id; text; optional; The gift bomb this gift was in.
  • {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} — Gifter.
  • {user.login} — Gifter — their login, for links.
  • {user.name} — Gifter — their display name.
  • {user.id} — Gifter — their Twitch id.
  • {user.avatar} — Gifter — their avatar picture, for a Discord card (picture address).
  • {recipient} — Recipient.
  • {recipient.login} — Recipient — their login, for links.
  • {recipient.name} — Recipient — their display name.
  • {recipient.id} — Recipient — their Twitch id.
  • {recipient.avatar} — Recipient — their avatar picture, for a Discord card (picture address).
  • {tier} — Tier.
  • {anonymous} — Anonymous.
  • {total} — Their gifts here.
  • {twitch.chatter_user_id} — Chatter id.
  • {twitch.chatter_user_login} — Chatter login.
  • {twitch.chatter_user_name} — Chatter display name.
  • {twitch.sub_gift.recipient_user_id} — Recipient id.
  • {twitch.sub_gift.recipient_user_login} — Recipient login.
  • {twitch.sub_gift.recipient_user_name} — Recipient display name.
  • {twitch.sub_gift.sub_tier} — Sub tier code.
  • {twitch.chatter_is_anonymous} — Anonymous.
  • {twitch.sub_gift.cumulative_total} — Their gifts here.
  • {twitch.sub_gift.duration_months} — Months gifted.
  • {twitch.sub_gift.community_gift_id} — Community gift id.
  • {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