#30 Update discordBot

- Added voice states intent
This commit is contained in:
Logan Cusano
2024-04-26 21:28:49 -04:00
parent 7b21d4601f
commit 383663e980

View File

@@ -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 () => {