votePoll

suspend fun BaseChannel.votePoll(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.15.0

Parameters

pollId

The poll id to vote

pollOptionIds

The poll option ids to vote


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.