Joining the user's current voice channel
On [email protected] & node v18.12
I've been trying to create a command that joins whichever channel the user is in.
I keep running into an issue where it doesn't read the user's current voice, instead it thinks "currVoiceChannel" is false.
Whenever I join a VC and call the bot it returns "Please join a voice channel".
I've looked at multiple examples and they all use the If (!currVoiceChannel)
5 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!Do you have the GuildVoiceStates intent?
The intent
Discord.GatewayIntentBits.GuildVoiceStates
I didn't have the intents updated, I only had .Guilds
It works, you guys are geniuses