From 383663e98026fa9b0fd0ddbf3fd4e99147694568 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Fri, 26 Apr 2024 21:28:49 -0400 Subject: [PATCH] #30 Update discordBot - Added voice states intent --- server/discordBot/discordBot.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/discordBot/discordBot.mjs b/server/discordBot/discordBot.mjs index 3069b8d..d09feeb 100644 --- a/server/discordBot/discordBot.mjs +++ b/server/discordBot/discordBot.mjs @@ -74,7 +74,7 @@ export function addEnabledEventListeners(serverClient, _eventsPath = "./events") } // The discord client -export const serverClient = new Client({ intents: [GatewayIntentBits.Guilds] }); +export const serverClient = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildVoiceStates] }); // Run when the bot is ready serverClient.on('ready', async () => {