Custom hasPermission

This commit is contained in:
Daniel Odendahl Jr
2017-05-28 02:30:06 +00:00
parent 1cd3ca22bc
commit 208652d270
17 changed files with 47 additions and 17 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ module.exports = class ClearSettingCommand extends Command {
}
hasPermission(msg) {
return msg.member.hasPermission('ADMINISTRATOR');
if (!msg.member.hasPermission('ADMINISTRATOR')) return 'You do not have the `Administrator` Permission.';
else return true;
}
run(msg, args) {