UNPKG

@rocket.chat/apps-engine

Version:

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

17 lines (16 loc) 676 B
import type { IHttp, IModify, IPersistence, IRead } from '../accessors'; import { AppMethod } from '../metadata'; import type { IUserStatusContext } from './IUserStatusContext'; /** * Event interface that allows an app to * register as a handler of the `IPostUserStatusChanged` * event * * This event is triggered *after* the * user changes his status on Rocket.chat * for online, away, busy or offline. * Does **not** trigger when the custom status is changed */ export interface IPostUserStatusChanged { [AppMethod.EXECUTE_POST_USER_STATUS_CHANGED](context: IUserStatusContext, read: IRead, http: IHttp, persis: IPersistence, modify: IModify): Promise<void>; }