From 8ef2ede2c02fdaf0a5fd4fcf92189dd457c1a314 Mon Sep 17 00:00:00 2001 From: Bradley Bickford Date: Sun, 19 Nov 2023 19:46:21 -0500 Subject: [PATCH] Trying another logging check to figure out this cache --- breadbot.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/breadbot.js b/breadbot.js index 4d086c0..3f95cb4 100644 --- a/breadbot.js +++ b/breadbot.js @@ -103,12 +103,14 @@ client.on(Events.VoiceStateUpdate, async (oldState, newState) => { // This should always have something to do, as all callIDs should be unique fs.mkdirSync("." + path.sep + "media" + path.sep + "voice_audio" + path.sep + newCallID, {recursive: true}) + console.log(newState.guild.channels.cache) + const voiceChannel = newState.guild.channels.cache .filter(c => c.type === "voice" || c.type === "stage") .find(c => c.id === newState.channelId) if(!voiceChannel) { - console.log("VOICE CHANNEL LOOKUP FAILED") + console.log("\tVOICE CHANNEL LOOKUP FAILED") return }