mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
@@ -16,8 +16,12 @@ module.exports = class DeviantartCommand extends Command {
|
||||
{
|
||||
key: 'section',
|
||||
prompt: `What section would you like to search? Either ${list(sections, 'or')}.`,
|
||||
type: 'choice',
|
||||
choices: sections
|
||||
type: 'string',
|
||||
validate: section => {
|
||||
if (sections.includes(section.toLowerCase())) return true;
|
||||
return `Invalid section, please enter either ${list(sections, 'or')}.`;
|
||||
},
|
||||
parse: section => section.toLowerCase()
|
||||
},
|
||||
{
|
||||
key: 'query',
|
||||
|
||||
Reference in New Issue
Block a user