/
iAccount.ts
77 lines (68 loc) · 1.31 KB
/
iAccount.ts
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/**
* Used to store Discord Information, IPs, and User Data
*
* @interface Account
*/
export interface Account {
/**
* A unique MongoDB identifier to identify the accoutn in the database.
* @type {*}
*
*/
_id: any;
/**
* A incremented ID for individual accounts.
* @type {number}
*
*/
id?: number;
/**
* Discord user ID. The one you get from developer mode.
* @type {string}
*
*/
discord?: string;
/**
* Email bound to the discord account.
* @type {string}
*
*/
email?: string;
/**
* Last 5 IPs that have logged into an account.
* @type {Array<string>}
*
*/
ips: Array<string>;
/**
* Hardware Identifiers associated with an account.
* @type {Array<string>}
*
*/
hardware: Array<string>;
/**
* Time in milliseconds when they last logged in since epoch.
* @type {number}
*
*/
lastLogin: number;
/**
* A list of permissions assigned to this account.
*
* @type {Array<string>}
*
*/
permissions: Array<string>;
/**
* Is this user banned?
* @type {boolean}
*
*/
banned: boolean;
/**
* Why are they banned?
* @type {string}
*
*/
reason: string;
}