vote Poll
fun BaseChannel.votePoll(pollId: Long, pollOptionIds: List<Long>, handler: ResultHandler<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.
Since
4.15.0
Parameters
poll Id
the id of the Poll to vote poll option.
poll Option Ids
List of option IDs to vote for.
handler
The callback handler.
Deprecated
As of 4.17.0, replaced with awaitVotePoll(pollId, pollOptionIds).
Replace with
awaitVotePoll(pollId, pollOptionIds)
Content copied to clipboard
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.15.0
Parameters
poll Id
The poll id to vote
poll Option Ids
The poll option ids to vote