The Member Reports API allows members to report other members for inappropriate behavior, such as spam, hate speech, and harassment. When a member submits a report about someone, the site owner gets notified about it by email. The site owner then can choose what to do with the report, such as dismiss it or block the relevant member. Reported members are listed in the site's dashboard.
With the Member Reports API, you can:
To use the MemberReport API, install the @wix/members
package using npm or Yarn:
npm install @wix/members
or
yarn add @wix/members
Then import { memberReport }
from @wix/members
:
import { memberReport } from "@wix/members";