PollResource

Twitch Helix Polls API resource.

Note: This resource returns lists directly rather than Page/Flow because polls are scoped to a single broadcaster and optionally filtered by specific poll IDs. The result set is inherently small (only one poll can be active at a time, and historical polls are typically fetched by ID), making auto-pagination unnecessary.

See also

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun end(broadcasterId: String, pollId: String, status: PollEndStatus): Poll
Link copied to clipboard
suspend fun getPolls(broadcasterId: String, ids: List<String> = emptyList(), first: Int = 20, after: String? = null): List<Poll>