📜  使通话中的每个人都静音 discord.js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:36.893000             🧑  作者: Mango

代码示例1
client.on('message', (message) => {
    if (message.content == '/muteAll') {
        let channel = message.member.voiceChannel;
        for (let member of channel.members) {
            member[1].setMute(true)
        }
     }
});