From 87be8ca8dbbd447485036298e22bc80c90983645 Mon Sep 17 00:00:00 2001 From: Bradley Bickford Date: Sun, 12 Nov 2023 10:49:22 -0500 Subject: [PATCH] Doing to some state value checking now that the event works --- breadbot.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/breadbot.js b/breadbot.js index b3011bb..bdd1b53 100644 --- a/breadbot.js +++ b/breadbot.js @@ -81,8 +81,10 @@ client.on(Events.GuildCreate, async guild => { }) client.on(Events.VoiceStateUpdate, async (oldState, newState) => { - console.log(`Old State ${oldState}`) - console.log(`New State ${newState}`) + console.log(`Old State`) + console.log(`\t ${oldState.guild.name} - ${oldState.channel.name} - ${oldState.member.username}`) + console.log(`New State`) + console.log(`\t ${newState.guild.name} - ${newState.channel.name} - ${newState.member.username}`) }) client.on(Events.MessageCreate, async message => {