This commit is contained in:
Dragon Fire
2020-02-25 16:26:56 -05:00
parent 9788936b9f
commit 54f2884525
+2 -2
View File
@@ -17,14 +17,14 @@ module.exports = class ReportCommand extends Command {
clientPermissions: ['EMBED_LINKS'], clientPermissions: ['EMBED_LINKS'],
args: [ args: [
{ {
name: 'reason', key: 'reason',
prompt: `What is the reason for your report? Either ${list(reasons, 'or')}.`, prompt: `What is the reason for your report? Either ${list(reasons, 'or')}.`,
type: 'string', type: 'string',
oneOf: reasons, oneOf: reasons,
parse: reason => reasons.indexOf(reason.toLowerCase()) parse: reason => reasons.indexOf(reason.toLowerCase())
}, },
{ {
name: 'message', key: 'message',
prompt: 'What is the message of your report?', prompt: 'What is the message of your report?',
type: 'string' type: 'string'
} }