From 5507fea98efac99fd6395750625a03846ac1cecf Mon Sep 17 00:00:00 2001 From: Bradley Bickford Date: Sun, 12 Nov 2023 10:16:41 -0500 Subject: [PATCH] I think some misplaced brackets were causing the issues --- breadbot.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/breadbot.js b/breadbot.js index 5a5bfe7..b3011bb 100644 --- a/breadbot.js +++ b/breadbot.js @@ -80,8 +80,9 @@ client.on(Events.GuildCreate, async guild => { } }) -client.on(Events.VoiceStateUpdate, async ([oldState, newState]) => { - console.log("State Change") +client.on(Events.VoiceStateUpdate, async (oldState, newState) => { + console.log(`Old State ${oldState}`) + console.log(`New State ${newState}`) }) client.on(Events.MessageCreate, async message => {