report.js (1218B)
1 const { EmbedBuilder } = require("discord.js"); 2 3 module.exports = { 4 name: "report", 5 description: "Report a bug of the bot", 6 category: "Utilities", 7 options: [ 8 { 9 type: 3, 10 name: "bug", 11 description: "The bug you want to report", 12 required: true, 13 }, 14 ], 15 run: async (client, interaction, args) => { 16 interaction.followUp({ 17 embeds: [ 18 new EmbedBuilder() 19 .setTitle("SUCCESS!") 20 .setDescription( 21 "You have reported a bug.\nPlease wait for us to solve it" 22 ) 23 .setFooter({ 24 text: `Made by ${client.author}`, 25 iconURL: client.user.displayAvatarURL({ dynamic: true }), 26 }) 27 .setTimestamp() 28 .setColor("Green"), 29 ], 30 }); 31 client.channels.cache.get(client.config.Report).send({ 32 embeds: [ 33 new EmbedBuilder() 34 .setAuthor({ 35 name: interaction.user.tag, 36 iconURL: interaction.user.displayAvatarURL({ dynamic: true }), 37 }) 38 .setTitle("New Bug") 39 .setDescription(args[0]) 40 .setColor("Orange") 41 .setTimestamp(), 42 ], 43 }); 44 }, 45 };