mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 00:04:48 +02:00
Add a bunch of report shortcut subcommands
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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: 'bug', message });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user