nyx/command/Utilities/report.js

46 lines
1.1 KiB
JavaScript
Raw Permalink Normal View History

2021-09-06 12:38:25 +02:00
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "report",
description: "Report a bug of the bot",
category: "Utilities",
type: "CHAT_INPUT",
options: [
{
type: 3,
name: "bug",
description: "The bug you want to report",
required: true,
},
],
run: async (client, interaction, args) => {
const bug = args[0];
interaction.followUp({
2021-09-06 12:38:25 +02:00
embeds: [
new MessageEmbed()
.setTitle("SUCCESS!")
.setDescription(
"You have reported a bug.\nPlease wait for us to solve it"
)
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
2021-09-06 12:38:25 +02:00
.setTimestamp()
.setColor("GREEN"),
],
});
const ch = client.channels.cache.get(client.config.Report);
2021-09-06 12:38:25 +02:00
ch.send({
embeds: [
new MessageEmbed()
.setAuthor(
interaction.user.tag,
2021-09-06 12:38:25 +02:00
interaction.user.displayAvatarURL({ dynamic: true })
)
.setTitle("New Bug")
.setDescription(bug)
.setColor("ORANGE")
.setTimestamp(),
],
});
},
};