PollChoice

@Serializable
data class PollChoice(val id: String, val title: String, val votes: Int = 0, val channelPointsVotes: Int = 0, val bitsVotes: Int = 0)

A single choice in a Poll.

Constructors

Link copied to clipboard
constructor(id: String, title: String, votes: Int = 0, channelPointsVotes: Int = 0, bitsVotes: Int = 0)

Properties

Link copied to clipboard
@SerialName(value = "bits_votes")
val bitsVotes: Int

not used; will be set to 0.

Link copied to clipboard
@SerialName(value = "channel_points_votes")
val channelPointsVotes: Int

the number of votes cast using Channel Points.

Link copied to clipboard
val id: String

an ID that identifies this choice.

Link copied to clipboard

the choice's title. The title may contain a maximum of 25 characters.

Link copied to clipboard
val votes: Int

the total number of votes cast for this choice.