Skip to main content

ReportPlayers

A static class in Root.Township, the global namespace.

Client console module report-players (alias report) for listing and filing player reports through the API.

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger for report output.

Methods​

MemberWhat it is
static async void CreateReport(int userId, ReportType type, int? serverId = null)Command create: reports a user for a reason on a server, the current one by default. Does nothing with no server.
static async Task<IEnumerable<PlayerReportInfo>> GetReports(ReportStatus? statusFilter = null, int? serverFilter = null)Command list: fetches player reports from the API, optionally filtered by status or server.