UNPKG

@rocket.chat/apps-engine

Version:

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

13 lines (12 loc) 449 B
import type { IMessage } from '../messages/index'; import type { IRoom } from '../rooms/IRoom'; import type { IUser } from '../users/IUser'; /** * This accessor provides methods for accessing * messages in a read-only-fashion. */ export interface IMessageRead { getById(id: string): Promise<IMessage | undefined>; getSenderUser(messageId: string): Promise<IUser | undefined>; getRoom(messageId: string): Promise<IRoom | undefined>; }