Holana/commands/invite.js
2022-12-02 21:54:36 +13:00

30 lines
No EOL
993 B
JavaScript

const messages = require("../utils/messages");
const { EmbedBuilder, MessageActionRow, MessageButton } = require("discord.js");
module.exports = {
name: "invite",
description: "Get Invite Link for Giveaway Child",
run: async (client, interaction) => {
let invite = new EmbedBuilder()
.setTitle(`${interaction.user.tag}`)
.setDescription("You can invite the bot by clicking on the below button.")
.setColor("#2f3136")
.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=910559370843131944&permissions=8&scope=bot%20applications.commands`
)
.setStyle("LINK")
);
await interaction.reply({
embeds: [invite],
components: [row],
ephemeral: true,
});
},
};