Holana/commands/invite.js

35 lines
1,011 B
JavaScript
Raw Permalink Normal View History

2023-11-26 01:26:08 -08:00
const messages = require("../utils/messages");
const {
EmbedBuilder,
ActionRowBuilder,
ButtonBuilder,
ButtonStyle,
} = require("discord.js");
module.exports = {
name: "invite",
description: "Get Invite Link for Holana",
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: `© Holana | Have a nice day!` });
const row = new ActionRowBuilder().addComponents(
new ButtonBuilder()
.setEmoji("865572290065072128")
.setLabel(`Invite ${client.user.username}`)
.setURL(
`https://discord.com/api/oauth2/authorize?client_id=726333575091454002&permissions=8&scope=bot%20applications.commands`
)
.setStyle(ButtonStyle.Link)
);
await interaction.reply({
embeds: [invite],
components: [row],
ephemeral: true,
});
},
};