メインコンテンツまでスキップ

レポートを表示し対応する

Last updated on October 23, 2024

Introduction

AccelByte Gaming Services (AGS) chat reporting and moderation feature allows you to view player reports and take appropriate action.

The chat reporting and moderation settings are available in game namespaces in the AGS Admin Portal. On the sidebar, go to Chat > Reporting and Moderation to access the menu.

Prerequisites

Game admins must have the followings permissions:

PermissionsActionUsage
ADMIN:NAMESPACE:{namespace}:CHAT:TOPICREAD, UPDATE, DELETETo view and delete reported chats and ban users

View and take action on reports

  1. On the Admin Portal sidebar, go to Social > Reporting and Moderation > Report List. The Report List page appears. On this page, reports are categorized by UGC, Player, and Chat.

    Image shows the Reports List page

  2. Find the report that you want to review and click its View option. The details page of the report appears. On this page, you can review the reported chat and take action.

    Image shows the details page of a report

  3. To ban a user, click Ban User. The Chat Ban form appears.

    Image shows the chat ban form

  4. Set the details and terms of the ban:

    • Ban Type: Select the type of ban the user will receive.
    • Ban expiration: Set the duration of the ban.
    • Reason : Select a reason for the ban.
    • Comment: (Optional) Add a comment.
    • Notify user via email: Tick this box if you want to email the user about their ban.
  5. Click Ban. The user's ban will immediately take effect based on the details and terms you set.

SDK sample code

FApiClientPtr UserApiClient = FMultiRegistry::GetApiClient();

FAccelByteModelsReportingSubmitDataChat ReportData;
ReportData.Comment = TEXT("Report comment"); // Details or comments about the report
ReportData.Reason = ReportingReason; // Get value from GetReason, or use a custom string
ReportData.ChatId = ChatId; // Chat ID we want to report
ReportData.UserId = UserId; // User ID we want to report
ReportData.ChatCreatedAt = chat_createdAt; // The chat createdAt field
ReportData.ChatTopicId = topicId; // The chat's topic ID

FAccelByteModelsReportingSubmitResponse ReportResponse;
bool bReportSuccess {false};
THandler<FAccelByteModelsReportingSubmitResponse> OnReportSuccess =
THandler<FAccelByteModelsReportingSubmitResponse>::CreateLambda(
[&](const FAccelByteModelsReportingSubmitResponse& Result)
{
// Do something when report success
});

FErrorHandler ReportingOnError = FErrorHandler::CreateLambda([](int32 Code, const FString& Message)
{
// Do something when error submitting report
});
UserApiClient->Reporting.SubmitChatReport(ReportData, OnReportSuccess, ReportingOnError);