How do I check if a bot is in a voice channel?

I'm coding a music bot for my own use only and I would like to stop the bot joining a channel if another bot is currently in it. What could be the if statement?
3 Replies
d.js toolkit
d.js toolkit7mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
maybebas
maybebas7mo ago
discord.js@14.13.0 node v18.18.1
d.js docs
d.js docs7mo ago
Documentation suggestion for @maybebas:property VoiceChannel#members The members in this voice-based channel