#Disconnect Bot
12 messages · Page 1 of 1 (latest)
• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.
djs v14
unless you mean via voice states, in which case oldState.channelId will be present but newState.channelId will be null when receiving the voiceStateUpdate event
Try this maybe
client.on(voiceChannelLeave), (member, channel) {
if (member.user.bot){
console.log("Bot disconnected from channel")
}
}
voiceChannelLeave is not an event
Ok maybe I can use it because I have discord-logs node-modul
perhaps
I imagine it's just an implementation of checking this
okay, thx
isnt it like
voiceConnection.on(VoiceConnectionState.Disconnected, (oldState, newState) => { //code })?
Library: Handling disconnects