end

suspend fun end(broadcasterId: String, pollId: String, status: PollEndStatus): Poll

Twitch API: End Poll

Ends an active poll. You have the option to end it or end it and archive it.

Return

the ended poll with final results.

Parameters

broadcasterId

the ID of the broadcaster that's running the poll. This ID must match the user ID in the user access token.

pollId

the ID of the poll to update.

status

the status to set the poll to. Possible case-sensitive values are: TERMINATED — Ends the poll before the poll is scheduled to end. The poll remains publicly visible. ARCHIVED — Ends the poll before the poll is scheduled to end, and then archives it so it's no longer publicly visible.