AutoMod/bot/src/struct/antispam/Infraction.ts
2022-05-28 14:00:22 +02:00

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;