Spaces:
Runtime error
Runtime error
Update index.js
Browse files
index.js
CHANGED
|
@@ -19,6 +19,15 @@ process.on('uncaughtException', (err) => {
|
|
| 19 |
console.error('[!] Uncaught Exception:', err);
|
| 20 |
});
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
rest: {
|
| 23 |
api: `https://${networkFix.getTargetDomain()}/api`,
|
| 24 |
version: '10'
|
|
|
|
| 19 |
console.error('[!] Uncaught Exception:', err);
|
| 20 |
});
|
| 21 |
|
| 22 |
+
const client = new Client({
|
| 23 |
+
intents: [
|
| 24 |
+
GatewayIntentBits.Guilds,
|
| 25 |
+
GatewayIntentBits.GuildMessages,
|
| 26 |
+
GatewayIntentBits.MessageContent,
|
| 27 |
+
GatewayIntentBits.GuildMessageReactions,
|
| 28 |
+
GatewayIntentBits.GuildMembers
|
| 29 |
+
],
|
| 30 |
+
partials: [Partials.Message, Partials.Channel, Partials.Reaction],
|
| 31 |
rest: {
|
| 32 |
api: `https://${networkFix.getTargetDomain()}/api`,
|
| 33 |
version: '10'
|