Prediction Created
Trigger for when a Twitch Prediction is Created
EventSub
Variables
The following variables will be populated when this trigger executes:
Description | ||
---|---|---|
prediction.CreatedAt | DateTime | The timestamp that the prediction was created Example: 8/4/2023 10:56:06 AM |
prediction.Id | string | Twitch's internal id for the prediction |
prediction.PredictionWindow | number | The duration of the prediction Example: 300 |
prediction.Title | string | The title of the prediction Example: My prediction title |
prediction._json | string | All the variables in a JSON Object |
prediction.outcome#.color | string | In capital letters the color name for this outcome Example: BLUE |
prediction.outcome#.id | string | The id for this outcome |
prediction.outcome#.points | number | The amount of channel points used for this outcome Example: 1200 |
prediction.outcome#.title | string | The title for this outcome Example: Outcome 1 |
prediction.outcome#.users | number | How many users voted for this outcome Example: 20 |