exports.run =(漫游器,消息,参数)=> { const discord = require(“ discord.js”)
let User = message.mentions.members.first() || message.guild.members.get(args[0]);
if(!User) return message.reply("Couldn't find user.");
let reason = args[1];
console.log("After met")
let muted = message.guild.roles.find(`name`, "muted");
if(!User.roles.has(muted.id)) return message.reply("They don't have that role.");
(User.removeRole(muted.id));
let embed = new discord.RichEmbed()
.setDescription($(message.author.username)`revoked ${User} mute`)
.setColor("#5221548")
.addField("Unmuted User", User)
.addField("Unmuted By", message.author.username)
.addField("Unmuted At", message.createdAt)
.addField("Reason", reason)
let logchannel = message.guild.channel.find(c=> c.name === "bot-logs")
logchannel.send(embed)
console.log("after embed")
}
exports.help = { 名称:“取消静音” }
这是静音。 我不明白如何使用此命令。就像有些人一样,它是++ mute。但这我不知道如何激活。