updateUserMessage

fun BaseChannel.updateUserMessage(messageId: Long, params: UserMessageUpdateParams, handler: ResultHandler<UserMessage>?)

Updates a UserMessage that was previously sent in the channel.

Since

4.15.0

Parameters

messageId

The ID of the message. This must be a message that exists in the channel's history, or an error will be returned.

params

UserMessageCreateParams.

handler

An UserMessageHandler to receive the callback from this method.


suspend fun BaseChannel.updateUserMessage(messageId: Long, params: UserMessageUpdateParams): UserMessage

Deprecated

As of 4.17.0, replaced with awaitUpdateUserMessage(messageId, params).

Replace with

awaitUpdateUserMessage(messageId, params)

Updates a UserMessage that was previously sent in the channel.

Return

The user message

Since

4.15.0

Parameters

messageId

The ID of the message. This must be a message that exists in the channel's history, or an error will be returned.

params

The parameters to update user message