Catch some stuff

This commit is contained in:
Daniel Odendahl Jr
2017-10-18 13:03:50 +00:00
parent c6ada36364
commit 59e97ed348
8 changed files with 34 additions and 19 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ module.exports = class HackbanCommand extends Command {
reason: `${msg.author.tag}: ${reason}`
});
} catch (err) {
return msg.say(`Could not hackban the user: \`${err.message}\``);
return msg.say(`Failed to hackban ${user.tag}: \`${err.message}\`.`);
}
return msg.say(`Successfully hackbanned ${user.tag}.`);
}