mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 21:40:49 +02:00
Better Error Handling
This commit is contained in:
@@ -14,8 +14,7 @@ module.exports = class ClearSettingCommand extends Command {
|
||||
prompt: 'What setting do you want to clear? `modLog`, `memberLog`, `staffRole`, or `singleRole`?',
|
||||
type: 'string',
|
||||
validate: setting => {
|
||||
if(['modLog', 'memberLog', 'staffRole', 'singleRole'].includes(setting))
|
||||
return true;
|
||||
if(['modLog', 'memberLog', 'staffRole', 'singleRole'].includes(setting)) return true;
|
||||
return 'Please enter either `modLog`, `memberLog`, `staffRole`, or `singleRole`.';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user