Missing an intent to capture the event that I want

This commit is contained in:
Bradley Bickford 2023-11-12 10:03:57 -05:00
parent b9a699c4c2
commit 27e9fdb743

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, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers, GatewayIntentBits.MessageContent] });
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers, GatewayIntentBits.MessageContent, GatewayIntentBits.VoiceStateUpdate] });
client.commands = new Collection();