/
Constants.js
202 lines (183 loc) · 5.58 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
"use strict";
module.exports.ImageFormats = [
"jpg",
"png",
"webp",
"gif"
];
module.exports.ImageSizeBoundaries = {
MINIMUM: 16,
MAXIMUM: 2048
};
module.exports.GatewayOPCodes = {
EVENT: 0,
HEARTBEAT: 1,
IDENTIFY: 2,
STATUS_UPDATE: 3,
VOICE_STATE_UPDATE: 4,
VOICE_SERVER_PING: 5,
RESUME: 6,
RECONNECT: 7,
GET_GUILD_MEMBERS: 8,
INVALID_SESSION: 9,
HELLO: 10,
HEARTBEAT_ACK: 11,
SYNC_GUILD: 12,
SYNC_CALL: 13
};
module.exports.GATEWAY_VERSION = 6;
module.exports.REST_VERSION = 7;
module.exports.Permissions = {
createInstantInvite: 1,
kickMembers: 1 << 1,
banMembers: 1 << 2,
administrator: 1 << 3,
manageChannels: 1 << 4,
manageGuild: 1 << 5,
addReactions: 1 << 6,
viewAuditLogs: 1 << 7,
voicePrioritySpeaker: 1 << 8,
stream: 1 << 9,
readMessages: 1 << 10,
sendMessages: 1 << 11,
sendTTSMessages: 1 << 12,
manageMessages: 1 << 13,
embedLinks: 1 << 14,
attachFiles: 1 << 15,
readMessageHistory: 1 << 16,
mentionEveryone: 1 << 17,
externalEmojis: 1 << 18,
viewGuildAnalytics: 1 << 19,
voiceConnect: 1 << 20,
voiceSpeak: 1 << 21,
voiceMuteMembers: 1 << 22,
voiceDeafenMembers: 1 << 23,
voiceMoveMembers: 1 << 24,
voiceUseVAD: 1 << 25,
changeNickname: 1 << 26,
manageNicknames: 1 << 27,
manageRoles: 1 << 28,
manageWebhooks: 1 << 29,
manageEmojis: 1 << 30,
all: 0b1111111111111111111111111111111,
allGuild: 0b1111100000010000000000010111111,
allText: 0b0110000000001111111110001010001,
allVoice: 0b0110011111100000000001100010001
};
module.exports.VoiceOPCodes = {
IDENTIFY: 0,
SELECT_PROTOCOL: 1,
READY: 2,
HEARTBEAT: 3,
SESSION_DESCRIPTION: 4,
SPEAKING: 5
};
module.exports.SystemJoinMessages = [
"%user% just joined the server - glhf!",
"%user% just joined. Everyone, look busy!",
"%user% just joined. Can I get a heal?",
"%user% joined your party.",
"%user% joined. You must construct additional pylons.",
"Ermagherd. %user% is here.",
"Welcome, %user%. Stay awhile and listen.",
"Welcome, %user%. We were expecting you ( ͡° ͜ʖ ͡°)",
"Welcome, %user%. We hope you brought pizza.",
"Welcome %user%. Leave your weapons by the door.",
"A wild %user% appeared.",
"Swoooosh. %user% just landed.",
"Brace yourselves. %user% just joined the server.",
"%user% just joined... or did they?",
"%user% just arrived. Seems OP - please nerf.",
"%user% just slid into the server.",
"A %user% has spawned in the server.",
"Big %user% showed up!",
"Where’s %user%? In the server!",
"%user% hopped into the server. Kangaroo!!",
"%user% just showed up. Hold my beer.",
"Challenger approaching - %user% has appeared!",
"It's a bird! It's a plane! Nevermind, it's just %user%.",
"It's %user%! Praise the sun! \\\\[T]/",
"Never gonna give %user% up. Never gonna let %user% down.",
"%user% has joined the battle bus.",
"Cheers, love! %user%'s here!",
"Hey! Listen! %user% has joined!",
"We've been expecting you %user%",
"It's dangerous to go alone, take %user%!",
"%user% has joined the server! It's super effective!",
"Cheers, love! %user% is here!",
"%user% is here, as the prophecy foretold.",
"%user% has arrived. Party's over.",
"Ready player %user%",
"%user% is here to kick butt and chew bubblegum. And %user% is all out of gum.",
"Hello. Is it %user% you're looking for?",
"%user% has joined. Stay a while and listen!",
"Roses are red, violets are blue, %user% joined this server with you"
];
module.exports.AuditLogActions = {
GUILD_UPDATE: 1,
CHANNEL_CREATE: 10,
CHANNEL_UPDATE: 11,
CHANNEL_DELETE: 12,
CHANNEL_OVERWRITE_CREATE: 13,
CHANNEL_OVERWRITE_UPDATE: 14,
CHANNEL_OVERWRITE_DELETE: 15,
MEMBER_KICK: 20,
MEMBER_PRUNE: 21,
MEMBER_BAN_ADD: 22,
MEMBER_BAN_REMOVE: 23,
MEMBER_UPDATE: 24,
MEMBER_ROLE_UPDATE: 25,
MEMBER_MOVE: 26,
MEMBER_DISCONNECT: 27,
BOT_ADD: 28,
ROLE_CREATE: 30,
ROLE_UPDATE: 31,
ROLE_DELETE: 32,
INVITE_CREATE: 40,
INVITE_UPDATE: 41,
INVITE_DELETE: 42,
WEBHOOK_CREATE: 50,
WEBHOOK_UPDATE: 51,
WEBHOOK_DELETE: 52,
EMOJI_CREATE: 60,
EMOJI_UPDATE: 61,
EMOJI_DELETE: 62,
MESSAGE_DELETE: 72,
MESSAGE_BULK_DELETE: 73,
MESSAGE_PIN: 74,
MESSAGE_UNPIN: 75,
INTEGRATION_CREATE: 80,
INTEGRATION_UPDATE: 81,
INTEGRATION_DELETE: 82
};
module.exports.MessageFlags = {
CROSSPOSTED: 1 << 0,
IS_CROSSPOST: 1 << 1,
SUPPRESS_EMBEDS: 1 << 2,
SOURCE_MESSAGE_DELETED: 1 << 3,
URGENT: 1 << 4
};
module.exports.MessageTypes = {
DEFAULT: 0,
RECIPIENT_ADD: 1,
RECIPIENT_REMOVE: 2,
CALL: 3,
CHANNEL_NAME_CHANGE: 4,
CHANNEL_ICON_CHANGE: 5,
CHANNEL_PINNED_MESSAGE: 6,
GUILD_MEMBER_JOIN: 7,
USER_PREMIUM_GUILD_SUBSCRIPTION: 8,
USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1: 9,
USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2: 10,
USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3: 11,
CHANNEL_FOLLOW_ADD: 12
};
module.exports.ChannelTypes = {
GUILD_TEXT: 0,
DM: 1,
GUILD_VOICE: 2,
GROUP_DM: 3,
GUILD_CATEGORY: 4,
GUILD_NEWS: 5,
GUILD_STORE: 6
};