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];
|
2021-11-18 18:56:42 +01:00
|
|
|
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"
|
|
|
|
)
|
2021-11-18 18:56:42 +01:00
|
|
|
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
|
2021-09-06 12:38:25 +02:00
|
|
|
.setTimestamp()
|
|
|
|
.setColor("GREEN"),
|
|
|
|
],
|
|
|
|
});
|
2021-11-18 18:56:42 +01:00
|
|
|
const ch = client.channels.cache.get(client.config.Report);
|
2021-09-06 12:38:25 +02:00
|
|
|
ch.send({
|
|
|
|
embeds: [
|
|
|
|
new MessageEmbed()
|
|
|
|
.setAuthor(
|
2021-11-18 18:56:42 +01:00
|
|
|
interaction.user.tag,
|
2021-09-06 12:38:25 +02:00
|
|
|
interaction.user.displayAvatarURL({ dynamic: true })
|
|
|
|
)
|
|
|
|
.setTitle("New Bug")
|
|
|
|
.setDescription(bug)
|
|
|
|
.setColor("ORANGE")
|
|
|
|
.setTimestamp(),
|
|
|
|
],
|
|
|
|
});
|
|
|
|
},
|
|
|
|
};
|