This commit is contained in:
Daniel Odendahl Jr
2018-03-23 22:35:21 +00:00
parent 9b8cc68b97
commit 0702a2d459
15 changed files with 48 additions and 96 deletions
+1 -4
View File
@@ -17,10 +17,7 @@ module.exports = class DeviantartCommand extends Command {
key: 'section',
prompt: `What section would you like to search? Either ${list(sections, 'or')}.`,
type: 'string',
validate: section => {
if (sections.includes(section.toLowerCase())) return true;
return `Invalid section, please enter either ${list(sections, 'or')}.`;
},
oneOf: sections,
parse: section => section.toLowerCase()
},
{