@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
8 lines (7 loc) • 360 B
TypeScript
import type { IMessage } from '../messages';
import type { IUser, UserType } from '../users';
export interface IModifyDeleter {
deleteRoom(roomId: string): Promise<void>;
deleteUsers(appId: Exclude<IUser['appId'], undefined>, userType: UserType.APP | UserType.BOT): Promise<boolean>;
deleteMessage(message: IMessage, user: IUser): Promise<void>;
}