sendReaction

fun sendReaction(reaction: Reaction, enforceUnique: Boolean, cid: String? = null): Call<Reaction>

Sends the reaction. Use enforceUnique parameter to specify whether the reaction should replace other reactions added by the current user. cid parameter is being used in side effect functions executed by plugins. You can skip it if plugins are not being used.

The call will be retried accordingly to retryPolicy.

Return

Executable async Call responsible for sending the reaction.

Parameters

reaction

The Reaction to send.

enforceUnique

Flag to determine whether the reaction should replace other ones added by the current user.

cid

The full channel id, i.e. "messaging:123" to which the message with reaction belongs.

See also

RetryPolicy