mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
Remove Choices Validator
This commit is contained in:
@@ -14,10 +14,7 @@ module.exports = class ChooseCommand extends commando.Command {
|
|||||||
args: [{
|
args: [{
|
||||||
key: 'choices',
|
key: 'choices',
|
||||||
prompt: 'What choices do you want me pick from? Split them with " | "!',
|
prompt: 'What choices do you want me pick from? Split them with " | "!',
|
||||||
type: 'string',
|
type: 'string'
|
||||||
validate: (str) => {
|
|
||||||
str.includes(" | ");
|
|
||||||
}
|
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user