@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
22 lines (21 loc) • 468 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;
/**
* The user that removed the room member
*/
removedBy?: IUser;
}