Prediction Locked
- Alert key:
twitch-predictionLocked - Source: Twitch
- Event list label: Prediction locked
Default message template
Prediction {{prediction_title}} locked. The current leader is {{prediction_winning_outcome_title}} with {{prediction_winning_outcome_points}} points
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 variable | Overlay payload field | Description |
|---|---|---|
{{prediction_title}} | data.extraSettings.prediction_title | Prediction title |
{{prediction_id}} | data.extraSettings.prediction_id | Prediction id |
{{prediction_possible_outcomes}} | data.extraSettings.prediction_possible_outcomes | Prediction possible outcomes |
{{prediction_winning_outcome_title}} | data.extraSettings.prediction_winning_outcome_title | Prediction winning outcome title |
{{prediction_winning_outcome_points}} | data.extraSettings.prediction_winning_outcome_points | Prediction winning outcome points |
{{prediction_winning_outcome_color}} | data.extraSettings.prediction_winning_outcome_color | Prediction winning outcome color |
{{prediction_outcome1_title}} | data.extraSettings.prediction_outcome1_title | Prediction outcome1 title |
{{prediction_outcome1_points}} | data.extraSettings.prediction_outcome1_points | Prediction outcome1 points |
{{prediction_outcome1_color}} | data.extraSettings.prediction_outcome1_color | Prediction outcome1 color |
{{prediction_outcome2_title}} | data.extraSettings.prediction_outcome2_title | Prediction outcome2 title |
{{prediction_outcome2_points}} | data.extraSettings.prediction_outcome2_points | Prediction outcome2 points |
{{prediction_outcome2_color}} | data.extraSettings.prediction_outcome2_color | Prediction outcome2 color |
{{prediction_started_at}} | data.extraSettings.prediction_started_at | Time prediction started at |
{{prediction_ends_at}} | data.extraSettings.prediction_ends_at | Time prediction ends at |
Example payloads
Each scenario below mirrors what Lumia emits in Overlay.on('alert', (data) => …).
Prediction Yes/No
{
"alert": "twitch-predictionLocked",
"dynamic": {
"value": "Will Lumia Stream be my only app for stream"
},
"extraSettings": {
"poll_title": "Is Lumia Stream the best",
"prediction_outcomes": "Yes,No",
"prediction_outcome1_title": "Yes",
"prediction_outcome1_points": 0,
"prediction_outcome1_color": "#ff00ff",
"prediction_outcome2_title": "No",
"prediction_outcome2_points": 0,
"prediction_outcome2_color": "#0000ff",
"prediction_title": "",
"prediction_id": "",
"prediction_possible_outcomes": "",
"prediction_winning_outcome_title": "",
"prediction_winning_outcome_points": "",
"prediction_winning_outcome_color": "",
"prediction_started_at": "",
"prediction_ends_at": ""
}
}
Variation conditions
Dimensions you can branch on when configuring alert variations:
RANDOMEQUAL_STRING- Title is equal toEQUAL_VARIABLE
Related
- Alert Explorer - live preview of every alert
- Overlay Type Definitions - full
AlertEventTypeScript type