Poll Terminated

Trigger for when a Twitch Poll is Terminated
0.0.50
EventSub

Variables

The following variables will be populated when this trigger executes:

Description
poll.Durationnumber

The duration of the poll in seconds

Example: 300
poll.DurationRemainingnumber

How many seconds the poll has remaining

poll.Idstring

Twitch's internal id for the poll

poll.StartedAtDateTime

The timestamp that the poll was created

Example: 8/4/2023 10:56:06 AM
poll._jsonstring

All the variables in a JSON Object

poll.choice#.rewardVotesnumber

The total number of reward based votes of this choice

Example: 7
poll.choice#.titlestring

The title of this choice

Example: Choice 1
poll.choice#.totalVotesnumber

The total number of votes for this choice

Example: 17
poll.choice#.votesnumber

The number of regular votes of this choice

Example: 10
poll.choices.countnumber

The number of choices in the poll

Example: 3
poll.endedAtDateTime

The timestamp that the poll ended

Example: 8/4/2023 10:56:06 AM
poll.rewardVotesnumber

The total number of reward based votes

Example: 19
poll.totalVotesnumber

The total number of votes

Example: 49
poll.votesnumber

The total number of regular votes

Example: 30
poll.winningIndexnumber

The index of the winning choice

Example: 2
poll.winningIndex.idnumber

The id of the winning choice

poll.winningIndex.rewardVotesnumber

The number of reward based votes from the winning choice

Example: 10
poll.winningIndex.titlenumber

The title of the winning choice

Example: Choice 2
poll.winningIndex.votesnumber

The number of regular votes from the winning choice

Example: 20
poll.winningIndex.votesnumber

The number votes from the winning choice

Example: 30