Overview
Returns a function that allows a space moderator to take action on a comment report. Available actions are: remove the comment, ban the comment’s author from the space, or dismiss the report.Requires the authenticated user to have
admin or moderator role in the target space.Usage Example
Parameters
One or more actions to take:
remove-comment— Removes the comment.ban-user— Bans the comment’s author from the space and the child spaces where they are an active member, and ends their membership of those spaces’ chats (requiresreason;userIdis optional and must be the author if sent).dismiss— Marks the report as dismissed.
Optional. The server bans the author of the reported content; if sent, this must be that author.
Returns
ReturnsPromise<{ message: string; code: string }>.
Notes
- This is the comment equivalent of
useHandleSpaceEntityReport. - To fetch pending reports, use
useFetchModeratedReports.

