Added some fancy intents to try to fix BreadBots deafness to new messages

This commit is contained in:
Bradley committed 2023-11-11 19:48:08 -05:00
1 parent 89e73e866b
commit 69a711a4a4
1 file changed
+1 -1
+1 -1
View File
@@ -26,7 +26,7 @@ const getAllFiles = function(directoryPath, arrayOfFiles) {
const allFiles = []; const allFiles = [];
getAllFiles('.' + path.sep + 'commands', allFiles); getAllFiles('.' + path.sep + 'commands', allFiles);
const client = new Client({ intents: [GatewayIntentBits.Guilds] }); const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers, GatewayIntentBits.MessageContent] });
client.commands = new Collection(); client.commands = new Collection();