Skip to content
Snippets Groups Projects
Commit 6fe93f0b authored by Levatax's avatar Levatax
Browse files

Update mute.js

parent e789a497
Branches
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ exports.run = async(bot, message, args, connection) => {
let spammer = message.guild.member(message.mentions.users.first() || message.guild.members.cache.get(args[0]));
if(!spammer) return message.channel.send("Please specify user to perform action upon.");
if(!spammer.hasPermission("MANAGE_MESSAGES")) return message.reply("Lacking permission to perform such action.");
if(!message.member.hasPermission("MANAGE_MESSAGES")) return message.reply("Lacking permission to perform such action.");
let role = message.guild.roles.cache.find(r => r.name === "Muted");
if(!role){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment