mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
23 lines
458 B
JavaScript
23 lines
458 B
JavaScript
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: 1, message });
|
|
}
|
|
};
|