nyx/command/Utilities/report.js

46 lines
1.1 KiB
JavaScript
Raw 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];
await interaction.followUp({
embeds: [
new MessageEmbed()
.setTitle("SUCCESS!")
.setDescription(
"You have reported a bug.\nPlease wait for us to solve it"
)
.setFooter(`Made by ${client.author}`)
.setTimestamp()
.setColor("GREEN"),
],
});
const ch = client.channels.cache.get(client.ReportLog);
ch.send({
embeds: [
new MessageEmbed()
.setAuthor(
interaction.member.user.tag,
interaction.user.displayAvatarURL({ dynamic: true })
)
.setTitle("New Bug")
.setDescription(bug)
.setColor("ORANGE")
.setTimestamp(),
],
});
},
};