From 27e9fdb743edb247dca57713f51cae07bbf9c4e8 Mon Sep 17 00:00:00 2001 From: Bradley Bickford Date: Sun, 12 Nov 2023 10:03:57 -0500 Subject: [PATCH] Missing an intent to capture the event that I want --- breadbot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/breadbot.js b/breadbot.js index 1e6bbce..58b7acf 100644 --- a/breadbot.js +++ b/breadbot.js @@ -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();