Skip to main content

Charity Donation

  • Alert key: twitch-charityDonation
  • Source: Twitch
  • Event list label: Donation
  • Carries alert image: yes (extraSettings.contentImage)

Default message template

{{username}} just tipped {{currencySymbol}}{{amount}} to charity {{charity_name}}

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
{{userId}}data.extraSettings.userIdThe user ID of the sender
{{username}}data.extraSettings.usernameThe username of the sender
{{displayname}}data.extraSettings.displaynameThe display name of the sender
{{amount}}data.extraSettings.amountThe amount sent
{{currency}}data.extraSettings.currencyThe currency used
{{currencySymbol}}data.extraSettings.currencySymbolThe currency symbol used
{{campaign_id}}data.extraSettings.campaign_idNo description available yet.
{{charity_name}}data.extraSettings.charity_nameNo description available yet.
{{charity_description}}data.extraSettings.charity_descriptionNo description available yet.
{{charity_logo}}data.extraSettings.charity_logoNo description available yet.
{{charity_website}}data.extraSettings.charity_websiteNo description available yet.

Example payloads

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

$100

{
"alert": "twitch-charityDonation",
"dynamic": {
"value": 100,
"currency": "USD"
},
"extraSettings": {
"username": "lumiastream",
"avatar": "https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png",
"amount": 100,
"currency": "USD",
"charity_id": "lumia123",
"charity_name": "Lumia Charity",
"charity_description": "Give me more lights",
"contentImage": "https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png",
"charity_website": "https://lumiastream.com",
"started_at": "2022-07-26T17:00:03.17106713Z",
"userId": "",
"displayname": "",
"currencySymbol": "",
"campaign_id": "",
"charity_logo": ""
}
}

$200

{
"alert": "twitch-charityDonation",
"dynamic": {
"value": 200,
"currency": "USD"
},
"extraSettings": {
"username": "lumiastream",
"avatar": "https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png",
"amount": 200,
"currency": "USD",
"charity_id": "lumia123",
"charity_name": "Lumia Charity",
"charity_description": "Give me more lights",
"contentImage": "https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png",
"charity_website": "https://lumiastream.com",
"started_at": "2022-07-26T17:00:03.17106713Z",
"userId": "",
"displayname": "",
"currencySymbol": "",
"campaign_id": "",
"charity_logo": ""
}
}

$300

{
"alert": "twitch-charityDonation",
"dynamic": {
"value": 300,
"currency": "USD"
},
"extraSettings": {
"username": "lumiastream",
"avatar": "https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png",
"amount": 300,
"currency": "USD",
"charity_id": "lumia123",
"charity_name": "Lumia Charity",
"charity_description": "Give me more lights",
"contentImage": "https://static-cdn.jtvnw.net/jtv_user_pictures/2b1fa336-f9b2-42cf-bd2c-98675da74982-profile_image-70x70.png",
"charity_website": "https://lumiastream.com",
"started_at": "2022-07-26T17:00:03.17106713Z",
"userId": "",
"displayname": "",
"currencySymbol": "",
"campaign_id": "",
"charity_logo": ""
}
}

Variation conditions

Dimensions you can branch on when configuring alert variations:

  • RANDOM
  • EQUAL_CURRENCY_NUMBER - Donation Amount is equal to
  • GREATER_CURRENCY_NUMBER - Donation Amount is greater than or equal to
  • EQUAL_USERNAME
  • EQUAL_VARIABLE