Verified Commit 1840ef1d authored by recette lemonweed's avatar recette lemonweed 🇮🇸

fixed perm bug with guildconfig and added no-delete flag to say

parent acf5dda4
......@@ -107,7 +107,7 @@ function func(message, args){
return message.reply("This setting isnt settable for servers.");
// check permissions for servers
if(!message.member.permissions.has("MANAGE_GUILD") && setting.server)
if(!message.member.permissions.has("MANAGE_GUILD") && !args.user)
return message.reply("You don't have manage guild perms.");
// get user/server id
......
......@@ -5,6 +5,9 @@ module.exports = {
category: "general",
arguments: {
positional: ["string"],
flags: {
"no-delete": [false, "n"]
}
},
func: func
};
......@@ -14,5 +17,6 @@ function func(message, args){
return message.reply("Give me something to say.");
message.channel.send(args._.join(" "));
message.delete();
if(!args["no-delete"])
message.delete();
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment