how to voice mute somebody discord bot discordjs 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)
}
}
});