Skip to main content

Subscription Gift

  • Alert key: facebook-subscriptionGift
  • Source: Facebook
  • Event list label: Gift Subscription

Default message template

{{username}} sent {{amount}} gift subscriptions

Template variables

Use any of these in alert text, TTS, or chat templates. The same names appear under data.extraSettings.* when you subscribe via Overlay.on('alert').

Template variableOverlay payload fieldDescription
{{username}}data.extraSettings.usernameThe username of the sender
{{recipient}}data.extraSettings.recipientUser being gifted the sub
{{recipients}}data.extraSettings.recipientsUsers being gifted the gift subscription. Comma separated list of usernames
{{recipientsRaw}}data.extraSettings.recipientsRawUsers being gifted the gift subscription. Raw array of usernames, avatar, and userId. mainly used for custom code and custom overlays. Can be accessed with dot notation e.g. {{recipientsRaw.0.avatar}} to get the first users avatar
{{gifter}}data.extraSettings.gifterThe username of the one who gifted
{{giftAmount}}data.extraSettings.giftAmountAmount gifted by user
{{message}}data.extraSettings.messageThe message text sent by the user

Example payloads

Each scenario below mirrors what Lumia emits in Overlay.on('alert', (data) => …).

100

{
"alert": "facebook-subscriptionGift",
"dynamic": {
"value": 100
},
"extraSettings": {
"username": "lumiastream",
"avatar": "https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png",
"amount": 100,
"recipient": "",
"recipients": "",
"recipientsRaw": "",
"gifter": "",
"giftAmount": "",
"message": ""
}
}

200

{
"alert": "facebook-subscriptionGift",
"dynamic": {
"value": 200
},
"extraSettings": {
"username": "lumiastream",
"avatar": "https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png",
"amount": 200,
"recipient": "",
"recipients": "",
"recipientsRaw": "",
"gifter": "",
"giftAmount": "",
"message": ""
}
}

300

{
"alert": "facebook-subscriptionGift",
"dynamic": {
"value": 300
},
"extraSettings": {
"username": "lumiastream",
"avatar": "https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png",
"amount": 300,
"recipient": "",
"recipients": "",
"recipientsRaw": "",
"gifter": "",
"giftAmount": "",
"message": ""
}
}

Variation conditions

Dimensions you can branch on when configuring alert variations:

  • RANDOM
  • EQUAL_NUMBER - Gift Sub Amount is equal to
  • GREATER_NUMBER - Gift Sub Amount is greater than or equal to
  • EQUAL_USERNAME
  • EQUAL_VARIABLE