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 toolkit2y 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 docs2y ago
method VoiceState#setDeaf() Deafens/undeafens the member of this voice state.
vlad vollar
vlad vollarOP2y ago
@syjalo but if the user enters other channels, he will have deafen
Syjalo
Syjalo2y ago
Wait, how do you mute a member in a specific channel?
vlad vollar
vlad vollarOP2y 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
Syjalo2y ago
No, there's no deafen permission
vlad vollar
vlad vollarOP2y ago
So, deafen can only be used on the server?
Syjalo
Syjalo2y 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 vollarOP2y ago
Thanks
Want results from more Discord servers?
Add your server