@theophilusdev/conduit
    Preparing search index...

    Interface MessageCreatePayload

    interface MessageCreatePayload {
        attachments: MessageAttachment[];
        body: string;
        isGroup: boolean;
        mentions: Record<string, string>;
        messageID: string;
        participantIDs: string[];
        senderID: string;
        threadID: string;
        timestamp: string;
        type: "message:create";
        collect(
            options?: CollectorOptions<["message:respond"]>,
        ): ConduitMessageCollector<["message:respond"]>;
        collect<K extends readonly (keyof ConduitEvents)[]>(
            events: K,
            options?: CollectorOptions<K>,
        ): ConduitMessageCollector<K>;
        react(emoji: string): Promise<void>;
        reply(body: ConduitSendableBody): Promise<SentMessage>;
        send(body: ConduitSendableBody): Promise<SentMessage>;
        shareContact(
            message: ConduitSendableBody,
            userID: string,
        ): Promise<SentMessage>;
        waitResponse(
            options?: Omit<CollectorOptions<["message:respond"]>, "max">,
        ): Promise<MessageRespondPayload>;
        waitResponse<K extends readonly (keyof ConduitEvents)[]>(
            events: K,
            options?: Omit<CollectorOptions<K>, "max">,
        ): Promise<CollectorPayload<K>>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    attachments: MessageAttachment[]
    body: string
    isGroup: boolean
    mentions: Record<string, string>
    messageID: string
    participantIDs: string[]
    senderID: string
    threadID: string
    timestamp: string
    type: "message:create"

    Methods