aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bot.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot.js b/bot.js
index 982208b..1a40058 100644
--- a/bot.js
+++ b/bot.js
@@ -15,7 +15,10 @@ if (!fs.existsSync("./reports")) fs.mkdirSync("./reports");
const rest = new REST({ version: '9' }).setToken(fs.readFileSync("./config/token." + (require('fs').existsSync("./beta") ? "beta" : "stable") + ".txt").toString());
const { Client, Intents, MessageActionRow, MessageButton, MessageSelectMenu, MessageEmbed } = require('discord.js');
-global.client = new Client({ intents: [Intents.FLAGS.GUILDS] });
+global.client = new Client({
+ partials: ['MESSAGE', 'CHANNEL'],
+ intents: ['DIRECT_MESSAGES', 'DIRECT_MESSAGE_REACTIONS', 'GUILD_MESSAGES', 'GUILD_MESSAGE_REACTIONS', 'GUILDS']
+});
const commandHandler = require('./handler/command');
const buttonHandler = require('./handler/button');