Not in stage channel error when running setSupress(false) despite checking for stage channel?
So how am I supposed to resolve an error like this? Because from what I can tell, all the checks are correct 😂
Also, if it's not clear from the image, the erroring line is 383

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!
- ✅
Marked as resolved by staffThe code doesn’t really prove that the bot is in
voiceChannel
At least according to what’s being shownWell
joinVoiceChannel
is ran prior to this code. And doesn't guildMe.voice
assert that the bot is in the voice channel, because it wouldn't exist otherwise?1.
<GuildMember>.voice
always exists. <GuildMember>.voice.channelId
would be the thing to assert
2. I believe kinect was saying the code doesn't prove that voiceChannel
is the specific channel your bot is connected to. You could be type guarding an entirely unrelated channel.I see, thanks