-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathConstants.js
115 lines (112 loc) · 1.66 KB
/
Constants.js
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
let USER_FLAGS = [{
flag: "DISCORD_EMPLOYEE",
bitwise: 1 << 0
},
{
flag: "PARTNERED_SERVER_OWNER",
bitwise: 1 << 1
},
{
flag: "HYPESQUAD_EVENTS",
bitwise: 1 << 2
},
{
flag: "BUGHUNTER_LEVEL_1",
bitwise: 1 << 3
},
{
flag: "HOUSE_BRAVERY",
bitwise: 1 << 6
},
{
flag: "HOUSE_BRILLIANCE",
bitwise: 1 << 7
},
{
flag: "HOUSE_BALANCE",
bitwise: 1 << 8
},
{
flag: "EARLY_SUPPORTER",
bitwise: 1 << 9
},
{
flag: "TEAM_USER",
bitwise: 1 << 10
},
{
flag: "BUGHUNTER_LEVEL_2",
bitwise: 1 << 14
},
{
flag: "VERIFIED_BOT",
bitwise: 1 << 16
},
{
flag: "EARLY_VERIFIED_BOT_DEVELOPER",
bitwise: 1 << 17
},
{
flag: "DISCORD_CERTIFIED_MODERATOR",
bitwise: 1 << 18
},
{
flag: "BOT_HTTP_INTERACTIONS",
bitwise: 1 << 19
},
{
flag: "SPAMMER",
bitwise: 1 << 20
},
{
flag: "ACTIVE_DEVELOPER",
bitwise: 1 << 22
},
{
flag: "QUARANTINED",
bitwise: 17592186044416
}
];
let APPLICATION_FLAGS = [{
flag: "GATEWAY_PRESENCE",
bitwise: 1 << 12
},
{
flag: "GATEWAY_PRESENCE_LIMITED",
bitwise: 1 << 13
},
{
flag: "GATEWAY_GUILD_MEMBERS",
bitwise: 1 << 14
},
{
flag: "GATEWAY_GUILD_MEMBERS_LIMITED",
bitwise: 1 << 15
},
{
flag: "VERIFICATION_PENDING_GUILD_LIMIT",
bitwise: 1 << 16
},
{
flag: "EMBEDDED",
bitwise: 1 << 17
},
{
flag: "GATEWAY_MESSAGE_CONTENT",
bitwise: 1 << 18
},
{
flag: "GATEWAY_MESSAGE_CONTENT_LIMITED",
bitwise: 1 << 19
},
{
flag: "APPLICATION_COMMAND_BADGE",
bitwise: 1 << 23
},
];
const VALID_SNOWFLAKE_REGEX = /^\d{17,20}$/
module.exports = {
USER_FLAGS,
APPLICATION_FLAGS,
VALID_SNOWFLAKE_REGEX
}