Set deafen

I have an interesting question. We can mute the user's microphone (mute) both on the entire server and in a specific channel. Can we do this with deafen? (in a specific channel)
9 Replies
d.js toolkit
d.js toolkit17mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Post the full error stack trace, not just the top part! - Show your code! - Explain what exactly your issue is. - Not a discord.js issue? Check out #useful-servers. - Issue solved? Press the button!
d.js docs
d.js docs17mo ago
method VoiceState#setDeaf() Deafens/undeafens the member of this voice state.
vlad vollar
vlad vollarOP17mo ago
@syjalo but if the user enters other channels, he will have deafen
Syjalo
Syjalo17mo ago
Wait, how do you mute a member in a specific channel?
vlad vollar
vlad vollarOP17mo ago
If you are talking about a microphone, then I use setMute, but it also applies to the server. But you can just set Speak: false in the channel. I want to do this with deafen, but it seems that such rights do not exist ...
Syjalo
Syjalo17mo ago
No, there's no deafen permission
vlad vollar
vlad vollarOP17mo ago
So, deafen can only be used on the server?
Syjalo
Syjalo17mo ago
Yes. If you don't want others to hear what you are saying, then just deny them to connect to the channel
vlad vollar
vlad vollarOP17mo ago
Thanks
Want results from more Discord servers?
Add your server