19 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 OPcode:
https://hasteb.in/06dSBsRGuCuciy5 - messageCreate event
https://hasteb.in/Jmlnx4ObSibVAAx - handler
https://hasteb.in/VzHjm61EiKDu7T6 - command
oh wait
umm
?
maybe the
message = ...
is why its not returning the voice channelcan you elaborate?
when did you try to do that
uhm
i'd tried this and its working
stupid code makes stupid error
i think message.member is the bot because it sends replies to ur message
and when u logged message.member earlier
bot
was true
add if (message.author.bot) return;
at the top of messageCreateit is, i'm not realizing it
the
message
meant in the message.member
is getting the bot's voice channel, not the user one
because of the message = await message.reply(...)
what is clientVC for then
its gonna be the same vc
its just checking if the author and the bots are in the same vc or not
its having the
.me
if the author is the bot then they're obviously gonna return the same channel
aint no way some random bot just send
@user play something
but actually i've added that before
its because the clientUser meant is the bot itself
because, of this
the
message
was replaced to the bot message, not the user message