updatePoll

fun BaseChannel.updatePoll(pollId: Long, params: PollUpdateParams, handler: ResultHandler<Poll>?)

Update poll

Since

4.15.0

Parameters

pollId

The ID of the poll to update

params

The params for updating a poll. See PollUpdateParams

handler

The handler for the result


suspend fun BaseChannel.updatePoll(pollId: Long, params: PollUpdateParams): Poll

Deprecated

As of 4.17.0, replaced with awaitUpdatePoll(pollId, params).

Replace with

awaitUpdatePoll(pollId, params)

Update poll

Return

The poll

Since

4.15.0

Parameters

pollId

The poll id to update

params

The parameters to update poll