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
No description
5 Replies
d.js toolkit
d.js toolkit•2mo 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! - ✅ Marked as resolved by staff
Inky
Inky•2mo ago
The code doesn’t really prove that the bot is in voiceChannel At least according to what’s being shown
dzlandis
dzlandisOP•4w ago
Well 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?
duck
duck•4w ago
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.
dzlandis
dzlandisOP•4w ago
I see, thanks

Did you find this page helpful?