18 lines
396 B
TypeScript
18 lines
396 B
TypeScript
import InfractionType from "./InfractionType";
|
|
|
|
class Infraction {
|
|
_id: string;
|
|
type: InfractionType;
|
|
actionType?: 'kick'|'ban';
|
|
user: string;
|
|
createdBy: string|null;
|
|
server: string;
|
|
channel?: string;
|
|
message?: string;
|
|
targetMessages?: string[];
|
|
reason: string;
|
|
date: number;
|
|
expires?: number; // Only applies to bans
|
|
}
|
|
|
|
export default Infraction;
|