Cleaner Looking args

This commit is contained in:
Daniel Odendahl Jr
2017-05-02 17:54:07 +00:00
parent 57ee7fa82b
commit 3bb21c2df0
83 changed files with 787 additions and 616 deletions
+16 -13
View File
@@ -9,20 +9,23 @@ module.exports = class WarnCommand extends Command {
memberName: 'warn',
description: 'Warns a user and logs the warn to the mod_logs.',
guildOnly: true,
args: [{
key: 'member',
prompt: 'What member do you want to warn?',
type: 'member'
}, {
key: 'reason',
prompt: 'What do you want to set the reason as?',
type: 'string',
validate: reason => {
if (reason.length < 140)
return true;
return `Please keep your reason under 140 characters, you have ${reason.length}.`;
args: [
{
key: 'member',
prompt: 'What member do you want to warn?',
type: 'member'
},
{
key: 'reason',
prompt: 'What do you want to set the reason as?',
type: 'string',
validate: reason => {
if (reason.length < 140)
return true;
return `Please keep your reason under 140 characters, you have ${reason.length}.`;
}
}
}]
]
});
}