Skip to main content

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.

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.

Flag a Message

Use the Flag Message Async node to report a message for moderation review.
  1. Create an FCometChatFlagDetail struct with the ReasonId and optional Remark
  2. Call the Flag Message Async node with the message ID and flag detail
  3. 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.
  1. Call the Get Flag Reasons Async node (no parameters needed)
  2. On Success, iterate the returned TArray<FCometChatFlagReason>
  3. Display the reasons in a UI picker for the user to select from

Moderation Status on Messages

Every FCometChatMessage includes a ModerationStatus field of type ECometChatModerationStatus. Use this to filter or visually indicate moderated content in your UI.

ECometChatModerationStatus

ValueDescription
UnmoderatedMessage has not been moderated
PendingMessage is pending moderation review
ApprovedMessage has been approved by moderation
DisapprovedMessage has been rejected by moderation

Real-Time Moderation Updates

Listen to the OnMessageModerated delegate to receive real-time updates when a message’s moderation status changes:
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.
PropertyTypeDescription
ReasonIdFStringID of the flag reason (from GetFlagReasons)
RemarkFStringOptional free-text remark from the reporter

FCometChatFlagReason

The struct returned when fetching available flag reasons.
PropertyTypeDescription
IdFStringUnique reason identifier
NameFStringDisplay name (e.g., “Spam”, “Harassment”)
DescriptionFStringDetailed description of the reason
CreatedAtint64Creation timestamp
UpdatedAtint64Last update timestamp

Next Steps

Real-Time Events

Listen for moderation status changes in real time.

API Reference

Complete reference of all structs and enums.