2022-12-02 08:54:36 +00:00
|
|
|
const messages = require("../utils/messages");
|
|
|
|
const { EmbedBuilder, MessageActionRow, MessageButton } = require("discord.js");
|
2021-12-10 05:24:04 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2022-12-02 08:54:36 +00:00
|
|
|
name: "help",
|
|
|
|
description: "Get all Bot Commands",
|
|
|
|
run: async (client, interaction) => {
|
|
|
|
let helpembed = new EmbedBuilder();
|
|
|
|
helpembed.setColor("RANDOM");
|
|
|
|
helpembed.setAuthor({ name: `Commands of ${client.user.username}` });
|
|
|
|
helpembed.setColor("#2f3136");
|
|
|
|
helpembed.setThumbnail(
|
|
|
|
"https://cdn.discordapp.com/avatars/608119997713350679/d71c7cbb2ba132867367ed47261aea6d.png"
|
|
|
|
);
|
|
|
|
client.commands.map((cmd) => {
|
|
|
|
helpembed.addField(`\`${cmd.name}\``, `${cmd.description}`, true);
|
|
|
|
});
|
|
|
|
helpembed.setTimestamp();
|
|
|
|
helpembed.setFooter({ text: `© EmotionChild | Have a nice day!` });
|
|
|
|
|
|
|
|
const row = new MessageActionRow().addComponents(
|
|
|
|
new MessageButton()
|
|
|
|
.setEmoji("865572290065072128")
|
|
|
|
.setLabel(`Invite ${client.user.username}`)
|
|
|
|
.setURL(
|
|
|
|
`https://discord.com/api/oauth2/authorize?client_id=726333575091454002&permissions=8&scope=bot%20applications.commands`
|
|
|
|
)
|
|
|
|
.setStyle("LINK")
|
|
|
|
);
|
|
|
|
|
|
|
|
await interaction.reply({
|
|
|
|
embeds: [helpembed],
|
|
|
|
components: [row],
|
|
|
|
ephemeral: true,
|
|
|
|
});
|
|
|
|
},
|
2021-12-10 05:24:04 +00:00
|
|
|
};
|