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
- 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[email protected]
node v18.18.1
Documentation suggestion for @maybebas: VoiceChannel#members
The members in this voice-based channel