|
Stream Chat Unreal SDK
|
The moderation verdict for a message. More...
#include <MessageModeration.h>
Public Member Functions | |
| FMessageModeration (const FMessageModerationDto &) | |
| bool | IsSet () const |
| Did moderation reach a verdict on this message at all? | |
Public Attributes | |
| EMessageModerationAction | Action = EMessageModerationAction::None |
| What moderation did with the message. | |
| FString | RawAction |
| The action exactly as the API named it. | |
| FString | OriginalText |
| The text the user submitted, before moderation replaced or withheld it. | |
| TArray< FString > | TextHarms |
| Harm labels the text triggered. Server-side responses only. | |
| TArray< FString > | ImageHarms |
| Harm labels the images triggered. Server-side responses only. | |
| FString | BlocklistMatched |
| Name of the blocklist the message matched, if any. Server-side responses only. | |
| FString | SemanticFilterMatched |
| The semantic filter phrase the message matched, if any. Server-side responses only. | |
| bool | bPlatformCircumvented = false |
| Whether the message tripped the platform circumvention model. Server-side responses only. | |
The moderation verdict for a message.
Populated from the moderation field of Moderation V2, falling back to the older moderation_details field, whose action names are translated to the same enum.
Only Action and OriginalText come back on a client-side response. The harm labels below are included in server-side responses only, so expect them to be empty in a game.
| FString FMessageModeration::RawAction |
The action exactly as the API named it.
The only way to tell one Other action from another, and the only way to read an action added to the API after this version of the SDK was built.