Skip to main content

Overview

Returns an async function that submits a moderation report for a chat message. The report is visible to space moderators and admins in the dashboard.
Requires ChatProvider in the component tree.

Usage Example

Parameters

The hook returns a function. That function accepts:
string
required
The ID of the conversation that contains the message.
string
required
The ID of the message to report.
string
A short reason for the report (e.g. "spam", "harassment").
string
Additional context or description of the issue.

Returns

Promise<void>

Notes