@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
18 lines (17 loc) • 384 B
TypeScript
import type { IUser } from '../users';
import type { IRoom } from './IRoom';
/**
* The context of execution for the following events:
* - IPreRoomUserLeave
* - IPostRoomUserLeave
*/
export interface IRoomUserLeaveContext {
/**
* The user that is leaving the room
*/
leavingUser: IUser;
/**
* The room that the user is leaving
*/
room: IRoom;
}