The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/definition/IMessage.ts

36 lines
723 B

import { IRocketChatRecord } from './IRocketChatRecord';
import { IUser } from './IUser';
import { ChannelName, RoomID } from './IRoom';
type MentionType = 'user' | 'team';
export interface IMessage extends IRocketChatRecord {
rid: RoomID;
msg: string;
ts: Date;
mentions?: {
_id: string;
type: MentionType;
name?: string;
username?: string;
}[];
channels?: Array<ChannelName>;
u: Pick<IUser, '_id' | 'username' | 'name'>;
_hidden?: boolean;
imported?: boolean;
replies?: IUser['_id'][];
location?: {
type: 'Point';
coordinates: [string, string];
};
starred?: {_id: string}[];
pinned?: boolean;
drid?: RoomID;
tlm?: Date;
dcount?: number;
tcount?: number;
t?: string;
e2e?: 'pending';
}