Prediction Completed

Trigger for when a Twitch Prediction is Completed
EventSub

Variables

The following variables will be populated when this trigger executes:

Description
prediction.CreatedAtDateTime

The timestamp that the prediction was created

Example: 8/4/2023 10:56:06 AM
prediction.EndedAtDateTime

The timestamp that the prediction ended

Example: 8/4/2023 10:56:06 AM
prediction.Idstring

Twitch's internal id for the prediction

prediction.LockedAtDateTime

The timestamp that the prediction was locked

Example: 8/4/2023 10:56:06 AM
prediction.PredictionWindownumber

The duration of the prediction

Example: 300
prediction.Titlestring

The title of the prediction

Example: My prediction title
prediction._jsonstring

All the variables in a JSON Object

prediction.outcome#.colorstring

In capital letters the color name for this outcome

Example: BLUE
prediction.outcome#.idstring

The id for this outcome

prediction.outcome#.pointsnumber

The amount of channel points used for this outcome

Example: 1200
prediction.outcome#.titlestring

The title for this outcome

Example: Outcome 1
prediction.outcome#.usersnumber

How many users voted for this outcome

Example: 20
prediction.winningOutcome.colorstring

In capital letters the name of the color from the winning outcome

Example: PINK
prediction.winningOutcome.idstring

The id of the winning outcome

prediction.winningOutcome.pointsnumber

The amount of channel points used for the winning outcome

Example: 900
prediction.winningOutcome.titlestring

The title of the winning outcome

Example: Outcome 2
prediction.winningOutcome.usersnumber

The votes for the winning outcome

Example: 30