nyx/command/Utilities/report.js

46 lines
1.1 KiB
JavaScript
Raw Normal View History

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