Trying another logging check to figure out this cache
This commit is contained in:
parent
32954a2536
commit
8ef2ede2c0
@ -103,12 +103,14 @@ client.on(Events.VoiceStateUpdate, async (oldState, newState) => {
|
|||||||
// This should always have something to do, as all callIDs should be unique
|
// 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})
|
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
|
const voiceChannel = newState.guild.channels.cache
|
||||||
.filter(c => c.type === "voice" || c.type === "stage")
|
.filter(c => c.type === "voice" || c.type === "stage")
|
||||||
.find(c => c.id === newState.channelId)
|
.find(c => c.id === newState.channelId)
|
||||||
|
|
||||||
if(!voiceChannel) {
|
if(!voiceChannel) {
|
||||||
console.log("VOICE CHANNEL LOOKUP FAILED")
|
console.log("\tVOICE CHANNEL LOOKUP FAILED")
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user