UNPKG

@rocket.chat/apps-engine

Version:

The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.

20 lines (19 loc) 624 B
import type { Reaction } from '../messages'; export interface IMessageUpdater { /** * Add a reaction to a message * * @param messageId the id of the message * @param userId the id of the user * @param reaction the reaction */ addReaction(messageId: string, userId: string, reaction: Reaction): Promise<void>; /** * Remove a reaction from a message * * @param messageId the id of the message * @param userId the id of the user * @param reaction the reaction */ removeReaction(messageId: string, userId: string, reaction: Reaction): Promise<void>; }