awaitVotePoll

suspend fun BaseChannel.awaitVotePoll(pollId: Long, pollOptionIds: List<Long>): PollVoteEvent

Vote on pollOptionIds. This operation overrides previous vote actions, so to update previous vote, pass new pollOptionIds as parameter. To cancel votes, pass an empty list as pollOptionIds.

Return

The poll vote event

Since

4.17.0

Parameters

pollId

The poll id to vote

pollOptionIds

The poll option ids to vote