Stream Chat Unreal SDK
Loading...
Searching...
No Matches
FMessageModerationDto Struct Reference

#/components/schemas/MessageModerationResult The moderation verdict the API reached for a message. More...

#include <MessageModerationDto.h>

Public Attributes

FString Action
 
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.
 

Detailed Description

#/components/schemas/MessageModerationResult The moderation verdict the API reached for a message.

Carries both the moderation key of Moderation V2 and the older moderation_details key: the two payloads have the same shape, and only their action vocabulary differs.

See also
https://getstream.io/moderation/docs/guides/bounce-message/

Member Data Documentation

◆ Action

FString FMessageModerationDto::Action

What moderation did with the message.

Left as a string rather than an enum because the server may add actions the SDK has not been taught yet, and an unknown value must reach the caller instead of failing to parse. V2 sends bounce, remove or flag; V1 sends MESSAGE_RESPONSE_ACTION_BOUNCE and friends.


The documentation for this struct was generated from the following file: