Skip to content

Models Moderation

n-Ultima edited this page Aug 30, 2021 · 2 revisions

Moderation Models

These models are all related to the moderation section of Doraemon. We use these to handle logging and tracking.

Infraction

public ulong ModeratorId {get; set;}

public ulong SubjectId {get; set;}

public string Id {get; set;}

public string Reason {get; set;}

public InfractionType Type {get; set;}

public DateTimeOffset CreatedAt {get; set;} = DateTimeOffset.UtcNow;

public bool IsEscalation {get; set;}

public TimeSpan? Duration {get; set;}

Modmail Ticket

public string Id {get; set;}

public ulong UserId {get; set;}

public ulong ModmailChannelId {get; set;}

public ulong DmChannelId {get; set;}

Modmail Message

public long Id {get; set;}

public string TicketId {get; set;}

public ulong AuthorId {get; set;}

public string Content {get; set;}

Modmail Snippet

public long Id {get; set;}

public string Name {get; set;}

public string Content {get; set;}

Punishment Escalation Configuration

public ulong Id {get; set;}

public int NumberOfInfractionsToTrigger {get; set;}

public InfractionType Type {get; set;}

public TimeSpan? Duration {get; set;}
Clone this wiki locally