CreatePollRequest

@Serializable
data class CreatePollRequest(val broadcasterId: String, val title: String, val choices: List<CreatePollChoice>, val duration: Int, val channelPointsVotingEnabled: Boolean = false, val channelPointsPerVote: Int = 0)

Twitch API: Create Poll

Constructors

Link copied to clipboard
constructor(broadcasterId: String, title: String, choices: List<CreatePollChoice>, duration: Int, channelPointsVotingEnabled: Boolean = false, channelPointsPerVote: Int = 0)

Properties

Link copied to clipboard
@SerialName(value = "broadcaster_id")
val broadcasterId: String

the ID of the broadcaster that's running the poll.

Link copied to clipboard
@SerialName(value = "channel_points_per_vote")
val channelPointsPerVote: Int

the number of Channel Points required per additional vote; min 1, max 1,000,000.

Link copied to clipboard
@SerialName(value = "channel_points_voting_enabled")
val channelPointsVotingEnabled: Boolean

whether to enable Channel Points voting.

Link copied to clipboard

the choices that viewers can vote on; must contain 2 to 5 choices.

Link copied to clipboard

how long the poll runs, in seconds; min 15, max 1800.

Link copied to clipboard

the question that viewers are voting on; max 60 characters.