@theophilusdev/conduit
    Preparing search index...

    Class ConduitMessagesAPI

    High-level messaging API for Conduit.

    Provides message sending, editing, reactions, attachments, and thread interaction utilities.

    All methods wrap the underlying FCA callback API and expose Promise-based interfaces.

    If a ConduitQueue is provided, outgoing operations are rate-limited and executed sequentially with simulated typing delays.

    Accessible via client.messages.

    Index

    Constructors

    Methods

    • Changes the theme color of a thread.

      Parameters

      • color: string

        Hex color string

      • threadID: string

        Target conversation

      Returns Promise<any>

    • Changes the quick reaction emoji for a thread.

      Parameters

      • emoji: string

        Emoji string

      • threadID: string

        Target conversation

      Returns Promise<any>

    • Deletes a message.

      Parameters

      • messageID: string

        Message to delete

      Returns Promise<any>

    • Edits an existing message sent by the bot.

      Parameters

      • messageID: string

        ID of the message to edit.

      • body: string

        New text content to replace the message with.

      Returns Promise<any>

      Only works on messages sent by the authenticated account. Attachments cannot be edited — text only.

    • Forwards an existing attachment to another thread.

      Parameters

      • attachmentID: string

        Attachment identifier

      • threadID: string

        Destination thread

      Returns Promise<any>

    • Retrieves a message by ID.

      Parameters

      • messageID: string

        Target message

      Returns Promise<any>

    • Retrieves available thread color themes.

      Returns Promise<any>

      List of supported thread colors

    • Marks a message as read.

      Parameters

      • messageID: string

        Message to mark

      Returns Promise<any>

    • Adds or removes a reaction to a message.

      Parameters

      • emoji: string

        Reaction emoji

      • messageID: string

        Target message

      • threadID: string

        Conversation ID

      Returns Promise<any>

      Includes a small randomized delay to mimic natural interaction timing.

    • Sends a typing indicator to a thread.

      Parameters

      • threadID: string

        Target conversation

      Returns Promise<any>

    • Retracts a message sent by the bot, removing it from the thread for all participants.

      Parameters

      • messageID: string

        ID of the message to unsend.

      Returns Promise<any>

      Only works on messages sent by the authenticated account.

    • Uploads an attachment and returns the uploaded reference.

      Parameters

      • file: any

        Stream, buffer, or attachment builder

      Returns Promise<any>