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

    Interface BugShield

    interface BugShield {
        analyze: (msg: unknown, thresholds?: ThreatThresholds) => ThreatAnalysis;
        stats: { blocked: number; scanned: number };
        addExempt(jid: string): void;
        bind(sock: unknown): () => void;
        getReasonStats(): Record<string, number>;
        handler(upsert: { messages: unknown[] }, sock?: unknown): Promise<void>;
        onDetected(cb: (detection: BugShieldDetection) => void): () => void;
        onError(cb: (info: { error: unknown; msg: unknown }) => void): () => void;
        removeExempt(jid: string): boolean;
        unbind(): void;
    }
    Index
    analyze: (msg: unknown, thresholds?: ThreatThresholds) => ThreatAnalysis

    Type Declaration

    stats: { blocked: number; scanned: number }
    • Detection counts per reason.

      Returns Record<string, number>

    • Parameters

      • upsert: { messages: unknown[] }
      • Optionalsock: unknown

      Returns Promise<void>

    • Parameters

      • cb: (info: { error: unknown; msg: unknown }) => void

      Returns () => void