mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 08:08:34 +02:00
Fix
This commit is contained in:
@@ -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'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user