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

38 lines
964 B
JavaScript

const { Command } = require('discord-akairo');
const { feedbackChannel } = require('../../config.json');
5 years ago
const { MessageEmbed } = require('discord.js');
6 years ago
class FeedbackCommand extends Command {
6 years ago
constructor() {
super('feedback', {
aliases: ['feedback'],
category: 'utility',
args: [
{
id: 'text',
type: 'string',
match: 'rest'
6 years ago
}
],
description: {
content: 'Send feedback to the bot owner',
usage: '[What do you want to say]',
examples: ['Hello, i just wanted to say hi!']
}
6 years ago
});
}
6 years ago
async exec(message,args) {
const channel = this.client.channels.get(feedbackChannel);
5 years ago
const Embed = new MessageEmbed()
.setAuthor(message.author.username, message.author.displayAvatarURL())
.setDescription(args.text)
.setFooter(`Author ID: ${message.author.id}`)
.setTimestamp();
channel.send({embed: Embed});
6 years ago
message.channel.send('Your feedback has been sent!');
}
}
module.exports = FeedbackCommand;