updateUserMessage

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

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


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.