Change arg assignment

This commit is contained in:
Daniel Odendahl Jr
2017-09-16 01:44:44 +00:00
parent a4f290f50d
commit 1c9ac56831
135 changed files with 166 additions and 273 deletions
+1 -2
View File
@@ -30,8 +30,7 @@ module.exports = class HackbanCommand extends Command {
});
}
async run(msg, args) {
const { id, reason } = args;
async run(msg, { id, reason }) {
if (id === msg.author.id) return msg.say('I don\'t think you want to ban yourself...');
if (id === msg.guild.ownerID) return msg.say('Don\'t you think that might be betraying your leader?');
let user;