PollEnd

data class PollEnd(val subscriptionType: String, val messageId: String, val timestamp: Instant, val id: String, val broadcasterUserId: String, val broadcasterUserLogin: String, val broadcasterUserName: String, val title: String, val choices: List<PollChoice>, val bitsVoting: VotingSettings, val channelPointsVoting: VotingSettings, val status: String, val startedAt: Instant, val endedAt: Instant) : TwitchEvent

Twitch EventSub: channel.poll.end

Constructors

Link copied to clipboard
constructor(subscriptionType: String, messageId: String, timestamp: Instant, id: String, broadcasterUserId: String, broadcasterUserLogin: String, broadcasterUserName: String, title: String, choices: List<PollChoice>, bitsVoting: VotingSettings, channelPointsVoting: VotingSettings, status: String, startedAt: Instant, endedAt: Instant)

Properties

Link copied to clipboard

Bits voting settings (not used, set to disabled).

Link copied to clipboard

the broadcaster's user ID.

Link copied to clipboard

the broadcaster's login.

Link copied to clipboard

the broadcaster's display name.

Link copied to clipboard

Channel Points voting settings.

Link copied to clipboard

the poll's choices with final vote totals.

Link copied to clipboard

the time the poll ended.

Link copied to clipboard
val id: String

ID of the poll.

Link copied to clipboard
open override val messageId: String

Unique ID for this EventSub message.

Link copied to clipboard

the time the poll started.

Link copied to clipboard

the poll's final status: completed, archived, or terminated.

Link copied to clipboard
open override val subscriptionType: String

The EventSub subscription type string (e.g. channel.follow).

Link copied to clipboard
open override val timestamp: Instant

The Instant when the EventSub notification was sent, parsed from ISO-8601.

Link copied to clipboard

question displayed for the poll.