votePoll

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

pollId

the id of the Poll to vote poll option.

pollOptionIds

List of option IDs to vote for.

handler

The callback handler.


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

Deprecated

As of 4.17.0, replaced with awaitVotePoll(pollId, pollOptionIds).

Replace with

awaitVotePoll(pollId, pollOptionIds)

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

pollId

The poll id to vote

pollOptionIds

The poll option ids to vote