2021-09-05 00:17:21 +00:00
|
|
|
import Discord from "discord.js";
|
|
|
|
|
2020-03-02 19:38:42 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'bug',
|
|
|
|
description: 'Report a bug',
|
|
|
|
category: 'info',
|
2021-09-05 00:17:21 +00:00
|
|
|
async execute(interaction, client) {
|
2020-03-12 22:53:23 +00:00
|
|
|
let message = {};
|
2020-03-22 15:10:46 +00:00
|
|
|
|
2020-03-12 22:53:23 +00:00
|
|
|
message.bugTitle = client.messages.bugTitle.replace("%client.user.username%", client.user.username);
|
2021-09-04 10:56:05 +00:00
|
|
|
message.bugDescription = client.messages.bugDescription.replace("%client.config.supportGuild%", client.config.supportGuild);
|
2020-03-22 15:10:46 +00:00
|
|
|
|
2020-03-02 19:38:42 +00:00
|
|
|
const embed = new Discord.MessageEmbed()
|
2020-03-12 22:53:23 +00:00
|
|
|
.setTitle(message.bugTitle)
|
2020-03-28 00:01:12 +00:00
|
|
|
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
|
2020-03-08 23:26:24 +00:00
|
|
|
.setColor(client.config.embedColor)
|
2020-03-12 22:53:23 +00:00
|
|
|
.setDescription(message.bugDescription)
|
2021-09-03 00:46:44 +00:00
|
|
|
.setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png')
|
2022-04-06 09:35:58 +00:00
|
|
|
.setFooter({
|
|
|
|
text: client.messages.footerText,
|
|
|
|
iconURL: "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')
|
|
|
|
});
|
2020-03-22 15:10:46 +00:00
|
|
|
|
2021-08-26 19:06:15 +00:00
|
|
|
interaction.reply({
|
|
|
|
embeds: [embed],
|
|
|
|
ephemeral: true
|
|
|
|
});
|
2021-08-04 08:29:49 +00:00
|
|
|
}
|
2021-09-09 09:44:50 +00:00
|
|
|
};
|