code to servermute all users in a voice channel

Have been trying to figure out how to implement a command that when the trigger command is used then it would server mute all the users cept those with a specific role in the voice channel the command is used in (the command would be used in the VC chat of the intended channel)
4 Replies
d.js toolkit
d.js toolkit15mo 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!
Bella Moonaria
Bella Moonaria15mo ago
Sounds like you want to override the channel's permissions for everyone and the specified role
Absolon
AbsolonOP15mo ago
yea, instead of having to right click each user and server mute, want it to do it for the mod team thing is removing speak perms do not take effect until the user leaves and re joins... forcing PTT is a temporary solution
d.js docs
d.js docs15mo ago
method VoiceState#setMute() Mutes/unmutes the member of this voice state.
Want results from more Discord servers?
Add your server