/ SDKs / Unreal
SDKs
Chat SDKs Unreal v3
Chat SDKs Unreal
Chat SDKs
Unreal
Version 3

Report a message, user, or channel

Copy link

In a channel, a user can report suspicious or harassing messages as well as other users who use abusive language. The user can also report channels if there are any inappropriate content or activity within the channel. Based on this functionality and our report API, you can build your own in-app system for managing objectionable content and subject.

// Report a message.
channel->ReportMessage(MESSAGE_TO_REPORT, REPORT_CATEGORY, DESCRIPTION, [](SBDError* error) {
    if (error != nullptr) {
        // Handle error.
        return;
    }
});

// Report a user.
channel->ReportUser(OFFENDING_USER, REPORT_CATEGORY, DESCRIPTION, [](SBDError* error) {
    if (error != nullptr) {
        // Handle error.
        return;
    }
});

// Report a channel.
channel->Report(REPORT_CATEGORY, DESCRIPTION, [channel](SBDError* error) {
    if (error != nullptr) {
        // Handle error.
        return;
    }
});

List of arguments

Copy link
ArgumentTypeDescription

MESSAGE_TO_REPORT

SBDBaseMessage*

Specifies the message to report for its suspicious, harassing, spam, or inappropriate content.

OFFENDING_USER

SBDUser&

Specifies the user who uses offensive or abusive language such as sending explicit messages or inappropriate comments.

REPORT_CATEGORY

enum class SBDReportCategory

Specifies a report category which indicates the reason for reporting. Acceptable values are Suspicious, Harassing, Spam, and Inappropriate.

DESCRIPTION

std::wstring

Specifies additional information to include in the report.