The CometChat Unreal SDK provides moderation tools to let users report inappropriate content. You can flag messages with a reason, fetch available flag reasons, and track moderation status on messages.Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-release-unreal-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Flag a Message
Use the Flag Message Async node to report a message for moderation review.- Blueprint
- C++

- Create an
FCometChatFlagDetailstruct with theReasonIdand optionalRemark - Call the Flag Message Async node with the message ID and flag detail
- Handle On Success (message flagged) or On Failure (error)
Get Flag Reasons
Fetch the list of available reasons a user can select when flagging a message.- Blueprint
- C++
- Call the Get Flag Reasons Async node (no parameters needed)
- On Success, iterate the returned
TArray<FCometChatFlagReason> - Display the reasons in a UI picker for the user to select from
Moderation Status on Messages
EveryFCometChatMessage includes a ModerationStatus field of type ECometChatModerationStatus. Use this to filter or visually indicate moderated content in your UI.
ECometChatModerationStatus
| Value | Description |
|---|---|
Unmoderated | Message has not been moderated |
Pending | Message is pending moderation review |
Approved | Message has been approved by moderation |
Disapproved | Message has been rejected by moderation |
Real-Time Moderation Updates
Listen to theOnMessageModerated delegate to receive real-time updates when a message’s moderation status changes:
- Blueprint
- C++
Bind to On Message Moderated on the CometChat Subsystem. The event provides the updated
FCometChatMessage with the new ModerationStatus.FCometChatFlagDetail
The struct you provide when flagging a message.| Property | Type | Description |
|---|---|---|
ReasonId | FString | ID of the flag reason (from GetFlagReasons) |
Remark | FString | Optional free-text remark from the reporter |
FCometChatFlagReason
The struct returned when fetching available flag reasons.| Property | Type | Description |
|---|---|---|
Id | FString | Unique reason identifier |
Name | FString | Display name (e.g., “Spam”, “Harassment”) |
Description | FString | Detailed description of the reason |
CreatedAt | int64 | Creation timestamp |
UpdatedAt | int64 | Last update timestamp |
Next Steps
Real-Time Events
Listen for moderation status changes in real time.
API Reference
Complete reference of all structs and enums.