Bot doesnt recognise the voice channel

im trying to make a bot command to join a voicechannel but when i execute the command and specify a voice channel it tells the its not a valid voice channel could anyone help me find out whats wrong with my code?
6 Replies
d.js toolkit
d.js toolkit16mo ago
- 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!
Enforcer
EnforcerOP16mo ago
[email protected] node v19.9.0
Enforcer
EnforcerOP16mo ago
Enforcer
EnforcerOP16mo ago
im a beginner and i have little clue what i am doing and maybe thats why i dont see why it doesnt recognise the voice channel as a valid voice channel so voiceChannel.type !== '(number)' what number is a choice channel voice* or Channel.type !== ChannelType.GuildVoice WAIT like this?
Enforcer
EnforcerOP16mo ago
Enforcer
EnforcerOP16mo ago
nvm idk what im doing wrong
Want results from more Discord servers?
Add your server