mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
Better Validators and More Destucturing
This commit is contained in:
@@ -16,7 +16,7 @@ module.exports = class CowsayCommand extends Command {
|
||||
if (text.length < 1500) {
|
||||
return true;
|
||||
}
|
||||
return 'Your message content is too long.';
|
||||
return `Please keep your content under 1500 characters, you have ${text.length}.`;
|
||||
}
|
||||
}]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user