@karmaniverous/jeeves-scripts-core
    Preparing search index...

    Interface WorkerSlackResult

    Outcome of runWorkerSlackJob (and dispatchWithSlack).

    interface WorkerSlackResult {
        posted: number;
        posts: {
            channel: string;
            edit_ts?: string;
            pin?: boolean;
            text: string;
            thread_ts?: string;
        }[];
        task: string;
    }
    Index
    posted: number

    Number of messages actually posted.

    posts: {
        channel: string;
        edit_ts?: string;
        pin?: boolean;
        text: string;
        thread_ts?: string;
    }[]

    Validated posts (empty when printTask or dryRun).

    Type Declaration

    • channel: string

      Target (normalized to channel:C… / user:U… after parsing).

    • Optionaledit_ts?: string

      Edit this existing message (ts); must be an allowed edit ts.

    • Optionalpin?: boolean

      Pin the posted message (only where the target permits pins).

    • text: string

      Message text (Slack mrkdwn).

    • Optionalthread_ts?: string

      Reply in this thread.

    task: string

    The full TASK that was (or would be) dispatched.