Can't find user's voice channel!
When using
member.voice.channel
it returns null
and I can't understand why.
I have the GuildVoiceStates
intent and I am on a voice channel when doing the command.
discord.js version: 14.13.0
node version: 18.18.08 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 OPLogging
member.voice
returns this:
show your client instance
asking for this?
yes, you need the guilds intent aswell
to get channels
one second let me test
thats also why the guild object has undefined values
thank you!!