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

    Function setParticipantsAdmin

    • Set the admin rank of the matched participants. Uses null for "not an admin" — never boolean false — and leaves a superadmin untouched when promoting to admin.

      Type Parameters

      Parameters

      • participants: T[] | null | undefined
      • targets: ParticipantLike[] | null | undefined
      • admin: "admin" | "superadmin" | null

      Returns T[]