diff options
-rw-r--r-- | bot.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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'); |