Get Active Poll
Check if a poll is currently active
Variables
The following variables will be populated after executing this sub-action:
Description | ||
---|---|---|
active | bool | Indicator whether an active poll is running Example: true |
poll.Duration | int | The total duration of the poll in seconds Example: 300 |
poll.DurationRemaining | int | The remaining time in milliseconds Example: 300 |
poll.EndsAt | DateTime | The timestamp when the poll will end Example: 8/4/2023 10:56:06 AM |
poll.Id | string | Twitch's internal id for the poll Example: f76ddfef-8654-4fd1-9dda-b377a73ed9ef |
poll.StartedAt | DateTime | The timestamp that the poll was created Example: 8/4/2023 10:56:06 AM |
poll.Title | string | The poll's title Example: Which game should we play next stream? |
poll.choice#.id | string | The id of this choice Example: Choice 1 |
poll.choice#.rewardVotes | int | The total number of reward based votes of this choice Example: 7 |
poll.choice#.title | string | The title of this choice Example: Choice 1 |
poll.choice#.totalVotes | int | The total number of votes for this choice Example: 17 |
poll.choice#.votes | int | The number of regular votes of this choice Example: 10 |
poll.choices.count | int | The number of choices in the poll Example: 3 |
poll.rewardVotes | int | The total number of reward based votes Example: 19 |
poll.totalVotes | int | The total number of votes Example: 49 |
poll.votes | int | The total number of regular votes Example: 30 |