Update to latest

This commit is contained in:
Daniel Odendahl Jr
2017-11-02 22:42:12 +00:00
parent 96c762a552
commit 7560246f26
37 changed files with 89 additions and 120 deletions
+6 -5
View File
@@ -16,16 +16,17 @@ module.exports = class HackbanCommand extends Command {
{
key: 'id',
prompt: 'What is the id of the member you want to hackban?',
type: 'string'
type: 'string',
validate: id => {
if (/^[0-9]+$/.test(id)) return true;
return 'Invalid ID.';
}
},
{
key: 'reason',
prompt: 'What do you want to set the reason as?',
type: 'string',
validate: reason => {
if (reason.length < 140) return true;
return 'Invalid reason, please keep the reason under 140 characters.';
}
max: 140
}
]
});