Stream Chat Unreal SDK
Loading...
Searching...
No Matches
MessageModeration.h
1// Copyright 2026 Stream.IO, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Response/Moderation/MessageModerationDto.h"
7
8#include "MessageModeration.generated.h"
9
14UENUM(BlueprintType)
15enum class EMessageModerationAction : uint8
16{
18 None,
20 Bounce,
22 Remove,
24 Flag,
26 Other
27};
28
40USTRUCT(BlueprintType)
41struct STREAMCHAT_API FMessageModeration
42{
43 GENERATED_BODY()
44
45 FMessageModeration() = default;
47
49 bool IsSet() const;
50
52 UPROPERTY(BlueprintReadOnly, Category = "Stream|Moderation")
54
61 UPROPERTY(BlueprintReadOnly, Category = "Stream|Moderation")
62 FString RawAction;
63
65 UPROPERTY(BlueprintReadOnly, Category = "Stream|Moderation")
66 FString OriginalText;
67
69 UPROPERTY(BlueprintReadOnly, Category = "Stream|Moderation")
70 TArray<FString> TextHarms;
71
73 UPROPERTY(BlueprintReadOnly, Category = "Stream|Moderation")
74 TArray<FString> ImageHarms;
75
77 UPROPERTY(BlueprintReadOnly, Category = "Stream|Moderation")
78 FString BlocklistMatched;
79
81 UPROPERTY(BlueprintReadOnly, Category = "Stream|Moderation")
82 FString SemanticFilterMatched;
83
85 UPROPERTY(BlueprintReadOnly, Category = "Stream|Moderation")
86 bool bPlatformCircumvented = false;
87};
EMessageModerationAction
What moderation decided to do with a message.
Definition MessageModeration.h:16
@ Remove
The message was blocked and removed from the channel.
@ Other
An action this version of the SDK does not know about. Read FMessageModeration::RawAction.
@ None
Moderation reached no verdict, which is the case for almost every message.
@ Flag
The message was published, but sent to the dashboard for a moderator to review.
@ Bounce
The message needs rephrasing and sending again. It was neither published nor stored.
#/components/schemas/MessageModerationResult The moderation verdict the API reached for a message.
Definition MessageModerationDto.h:21
The moderation verdict for a message.
Definition MessageModeration.h:42