Create Poll
Create a Twitch poll
Preview
Parameters
Titlerequired
String
the poll's title
Choicesrequired
String
Poll choices (min. 2, max. 5)
Channel Points Per Vote
Int
Set Channel Points for extra votes
Duration
Int
Set poll duration in seconds
Variables
The following variables will be populated after executing this sub-action:
Description | ||
---|---|---|
pollId | string | the ID of the poll Example: 6bac1033-996d-4798-a688-b4df93434d6f |
success | bool | indicator whether the poll has been created successfully or not Example: True/False |
C# Usage
public bool TwitchPollCreate(string title, List<string> choices, int duration, int channelPointsPerVote = 0)