Better Validators and More Destucturing

This commit is contained in:
Daniel Odendahl Jr
2017-04-19 18:55:26 +00:00
parent c064401b37
commit d77f71b66a
40 changed files with 114 additions and 124 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class PruneCommand extends Command {
if (count < 100 && count > 0) {
return true;
}
return 'Too many or two few messages to delete. Limit 1-99.';
return `${count} is not a valid amount of messages. Limit 1-99.`;
}
}]
});