discord.js how do I mute a user code example
Example: mute everyone in call discord.js
client.on('message', (message) => {
if (message.content == '/muteAll') {
let channel = message.member.voiceChannel;
for (let member of channel.members) {
member[1].setMute(true)
}
}
});