update Poll Option
fun BaseChannel.updatePollOption(pollId: Long, pollOptionId: Long, optionText: String, handler: ResultHandler<Poll>?)
Updates optionText fields of this poll option. Once updated successfully, a non-null PollOption instance will be passed to the handler.
Since
4.15.0
Parameters
poll Id
The ID of the poll to update
poll Option Id
The ID of the poll option to update
option Text
The option text to update
handler
The handler for the result
suspend fun BaseChannel.updatePollOption(pollId: Long, pollOptionId: Long, optionText: String): Poll
Deprecated
As of 4.17.0, replaced with awaitUpdatePollOption(pollId, pollOptionId, optionText).
Replace with
awaitUpdatePollOption(pollId, pollOptionId, optionText)
Content copied to clipboard
Updates optionText fields of this poll option. A non-null PollOption instance will be returned once updated successfully
Return
The poll option
Since
4.15.0
Parameters
poll Id
The poll id to update option
poll Option Id
The poll option id to update
option Text
The option text to update