1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Haha-Yes/commands/utility/feedback.js

25 lines
815 B
JavaScript

const { Command } = require('discord.js-commando');
const { feedbackChannel } = require('../../config.json');
module.exports = class feedbackCommand extends Command {
constructor(client) {
super(client, {
name: 'feedback',
group: 'utility',
memberName: 'feedback',
description: `Send feedback`,
args: [
{
key: 'text',
6 years ago
prompt: 'What would you want to send as feedback?',
type: 'string',
}
]
});
}
async run(message, { text }) {
const channel = this.client.channels.get(feedbackChannel);
channel.send(`from ${message.author}: ${text}`);
6 years ago
message.say('Your feedback has been sent!');
}
};