Code Improvements

This commit is contained in:
Daniel Odendahl Jr
2017-04-17 21:57:35 +00:00
parent 45ba18bea9
commit 9dd0589de5
46 changed files with 73 additions and 209 deletions
+3 -4
View File
@@ -22,6 +22,7 @@ module.exports = class LockdownCommand extends Command {
}]
});
}
hasPermission(msg) {
return msg.member.hasPermission('ADMINISTRATOR');
}
@@ -38,8 +39,7 @@ module.exports = class LockdownCommand extends Command {
SEND_MESSAGES: false
});
return message.say('**Lockdown Started, users without Administrator can no longer post messages. Please use `;lockdown stop` to end the lockdown.**');
}
catch (err) {
} catch (err) {
return message.say(':x: Error! Something went wrong!');
}
}
@@ -49,8 +49,7 @@ module.exports = class LockdownCommand extends Command {
SEND_MESSAGES: true
});
return message.say('**Lockdown Ended, users without Administrator can now post messages.**');
}
catch (err) {
} catch (err) {
return message.say(':x: Error! Something went wrong!');
}
}