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

    Interface JoinRequestManager

    interface JoinRequestManager {
        processedCount: number;
        allow(jid: string): void;
        bind(sock: unknown): () => void;
        decide(user: string): "reject" | "approve" | null;
        deny(jid: string): void;
        handler(update: unknown, sock?: unknown): Promise<void>;
        onError(
            cb: (
                info: { action: string; chat: string; error: unknown; user: string },
            ) => void,
        ): () => void;
        onProcessed(
            cb: (
                info: { action: "reject" | "approve"; chat: string; user: string },
            ) => void,
        ): () => void;
        onRequest(cb: (request: JoinRequest) => void): () => void;
        sweep(
            sock: unknown,
            groupJid: string,
        ): Promise<{ approved: string[]; pending: string[]; rejected: string[] }>;
        unbind(): void;
    }
    Index
    processedCount: number
    • Rule verdict for a jid: 'approve' | 'reject' | null (manual).

      Parameters

      • user: string

      Returns "reject" | "approve" | null

    • Handler for the 'group.join-request' event.

      Parameters

      • update: unknown
      • Optionalsock: unknown

      Returns Promise<void>

    • Parameters

      • cb: (info: { action: string; chat: string; error: unknown; user: string }) => void

      Returns () => void

    • Parameters

      • cb: (info: { action: "reject" | "approve"; chat: string; user: string }) => void

      Returns () => void

    • Process the pending list of a group with the same rules.

      Parameters

      • sock: unknown
      • groupJid: string

      Returns Promise<{ approved: string[]; pending: string[]; rejected: string[] }>