reactToMessage

fun reactToMessage(reaction: Reaction, message: Message)

Triggered when the user selects a reaction for the currently selected message. If the message already has that reaction, from the current user, we remove it. Otherwise we add a new reaction.

Parameters

reaction

The reaction to add or remove.

message

The currently selected message.