summaryrefslogtreecommitdiff
path: root/dist/classes/DMDataMessage.d.ts
blob: 4ce959acf78195996cb2e22f74b763012486763c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { User } from "./User";
import { DMMessage } from "./DMMessage";
import { Client } from "./Client";
import { DataMessage } from "./DataMessage";
import { Attachment } from "./Attachment";
import { QuoteMessage } from "./QuoteMessage";
import { MessageFormatting } from "./MessageFormatting";
import { UserMention } from "./UserMention";
import { IReceivedMessageURLPreview } from "../types/IReceivedMessageURLPreview";
import { IChatMessageOptions } from "../types/IChatMessageOptions";
import { SentDataMessage } from "./SentDataMessage";
/**
 * A data message as sent by Signal
 */
export declare class DMDataMessage extends DMMessage implements DataMessage {
    content?: string;
    attachments: Attachment[];
    mentions: UserMention[];
    previews: IReceivedMessageURLPreview[];
    formatting: MessageFormatting;
    quote?: QuoteMessage;
    constructor(user: User, data: any, time: number, client: Client);
    markAsRead(): Promise<void>;
    markAsViewed(): Promise<void>;
    reply(text: string, options?: IChatMessageOptions): Promise<SentDataMessage>;
}