mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +02:00
Better Validators and More Destucturing
This commit is contained in:
@@ -17,7 +17,7 @@ module.exports = class LockdownCommand extends Command {
|
||||
if (type.toLowerCase() === 'start' || type.toLowerCase() === 'stop') {
|
||||
return true;
|
||||
}
|
||||
return 'Please enter either start or stop.';
|
||||
return 'Please enter either `start` or `stop`.';
|
||||
},
|
||||
parse: text => {
|
||||
return text.toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user