From 479d8e692949877cbab10d72ef4a2c13e3ac1cdc Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 10 Feb 2022 23:03:58 +0100 Subject: Fix: #1 was not working properly --- bot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bot.js') 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'); -- cgit