mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
24 lines
502 B
JavaScript
24 lines
502 B
JavaScript
const Command = require('../../framework/Command');
|
|
|
|
module.exports = class ReportBugCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'report-bug',
|
|
aliases: ['bug', 'report-suggestion'],
|
|
group: 'util-public',
|
|
description: 'Shortcut to report a bug.',
|
|
guarded: true,
|
|
args: [
|
|
{
|
|
key: 'message',
|
|
type: 'string'
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg, { message }) {
|
|
return this.client.registry.commands.get('report').run(msg, { reason: 0, message });
|
|
}
|
|
};
|