Hello! I am writing a music bot (but it plays only rickroll) on JS, and i am stuck on getting the current voice channel of an user. This is my current call.
!message.author.client.voice.channel
If this condition is true, it will send me a message with these contents: Join a channel first!. But, what can you expect, it sends it without any care whether am i in a voice channel or not. m!play is the command.
Versions:
Node: v17.3.1
Discord.JS: 13.6.0 (as i found in package.json of node_modules/discord.js)
Discord directory (in node_modules): 0.8.2
Distube (package.json): 3.3.4
The issue tracker is only for bug reports and enhancement suggestions. If you have a question, please ask it in the Discord server instead of opening an issue – you will get redirected there anyway.
Hello! I am writing a music bot (but it plays only rickroll) on JS, and i am stuck on getting the current voice channel of an user. This is my current call.
If this condition is true, it will send me a message with these contents:
Join a channel first!
. But, what can you expect, it sends it without any care whether am i in a voice channel or not.m!play
is the command.Versions:
Message proof Voice proof
What to do?
Originally posted by @its-mrarsikk in https://github.com/discordjs/discord.js/discussions/7834