mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 03:14:35 +02:00
Add a bunch of report shortcut subcommands
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
const Command = require('../../framework/Command');
|
||||
|
||||
module.exports = class FeedbackCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'feedback',
|
||||
group: 'util-public',
|
||||
description: 'Shortcut to send feedback.',
|
||||
guarded: true,
|
||||
args: [
|
||||
{
|
||||
key: 'message',
|
||||
type: 'string'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { message }) {
|
||||
return this.client.registry.commands.get('report').run(msg, { reason: 'feedback', message });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user