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

This commit is contained in:
Bradley Bickford 2023-11-11 19:48:08 -05:00
parent 89e73e866b
commit 69a711a4a4

View File

@ -26,7 +26,7 @@ const getAllFiles = function(directoryPath, arrayOfFiles) {
const 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();