Remove 'list' from validators

This commit is contained in:
Daniel Odendahl Jr
2017-03-25 15:42:00 +00:00
parent 7dd9bd23a1
commit 561bd554b5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ module.exports = class TranslateCommand extends commando.Command {
prompt: 'What language would you like to translate to?',
type: 'string',
validate: to => {
if (languages[to.toLowerCase()] || to.toLowerCase() === 'list') {
if (languages[to.toLowerCase()]) {
return true;
}
return 'Please enter a valid language code. Use `;help translate` for a list of codes.';