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

23 lines
500 B

import { IRocketChatRecord } from './IRocketChatRecord';
import { IUser } from './IUser';
import { ChannelName, RoomID } from './IRoom';
export interface IMessage extends IRocketChatRecord {
rid: RoomID;
msg: string;
ts: Date;
mentions?: {
_id: string;
name?: string;
}[];
channels?: Array<ChannelName>;
u: Pick<IUser, '_id' | 'username' | 'name'>;
_hidden?: boolean;
imported?: boolean;
replies?: IUser['_id'][];
location?: {
type: 'Point';
coordinates: [string, string];
};
}