blob: 0a3feba444f398ca099bceccdeae98c49753f5c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
import { BaseModel } from './BaseModel';
export enum ModlogType {
BAN = 'BAN',
TEMPBAN = 'TEMPBAN',
KICK = 'KICK',
MUTE = 'MUTE',
TEMPMUTE = 'TEMPMUTE',
WARN = 'WARN'
}
export interface ModlogModel {
id: string;
type: ModlogType;
user: string;
moderator: string;
reason: string;
duration: number;
guild: string;
}
export interface ModlogModelCreationAttributes {
id?: string;
type: ModlogType;
user: string;
moderator: string;
reason?: string;
duration?: number;
guild: string;
}
export class Modlog
extends BaseModel<ModlogModel, ModlogModelCreationAttributes>
implements ModlogModel {
id: string;
type: ModlogType;
user: string;
moderator: string;
guild: string;
reason: string | null;
duration: number | null;
}
|