mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-01-11 15:24:49 +00:00
30 lines
1.1 KiB
JavaScript
30 lines
1.1 KiB
JavaScript
import { EmbedBuilder } from "discord.js";
|
|
|
|
module.exports = {
|
|
name: 'bug',
|
|
description: 'Report a bug',
|
|
category: 'info',
|
|
async execute(interaction, client) {
|
|
let message = {};
|
|
|
|
message.bugTitle = client.messages.bugTitle.replace("%client.user.username%", client.user.username);
|
|
message.bugDescription = client.messages.bugDescription.replace("%client.config.supportGuild%", client.config.supportGuild);
|
|
|
|
const embed = new EmbedBuilder()
|
|
.setTitle(message.bugTitle)
|
|
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
|
|
.setColor(client.config.embedColor)
|
|
.setDescription(message.bugDescription)
|
|
.setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png')
|
|
.setFooter({
|
|
text: client.messages.footerText,
|
|
iconURL: "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, '')
|
|
});
|
|
|
|
interaction.reply({
|
|
embeds: [embed],
|
|
ephemeral: true
|
|
});
|
|
}
|
|
};
|