@japofc/baileys - v2.4.7
    Preparing search index...

    Interface CallGuardOptions

    interface CallGuardOptions {
        allowlist?: string[];
        autoReject?: boolean | ((call: GuardedCall) => boolean | Promise<boolean>);
        denylist?: string[];
        maxCalls?: number;
        now?: () => number;
        rejectMessage?: string | ((call: GuardedCall) => unknown);
        schedule?: { from: string; to: string };
    }
    Index
    allowlist?: string[]

    JIDs whose calls are never auto-rejected.

    autoReject?: boolean | ((call: GuardedCall) => boolean | Promise<boolean>)

    Reject incoming call offers — boolean or per-call predicate. Default false.

    denylist?: string[]

    Always rejected — beats allowlist and schedule.

    maxCalls?: number

    Max calls kept in the log (LRU). Default 200.

    now?: () => number

    Clock override (testing).

    rejectMessage?: string | ((call: GuardedCall) => unknown)

    Text (or content factory) sent to the caller after rejecting.

    schedule?: { from: string; to: string }

    Quiet hours — only auto-reject inside this window (overnight ok).