2023-03-19 09:46:57 +00:00
|
|
|
const messages = require('../utils/messages');
|
|
|
|
const {
|
|
|
|
MessageEmbed,
|
|
|
|
MessageActionRow,
|
|
|
|
MessageButton
|
|
|
|
} = require('discord.js');
|
2021-12-10 05:24:04 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2023-03-19 09:46:57 +00:00
|
|
|
name: "invite",
|
|
|
|
description: "Get Invite Link for Holana",
|
|
|
|
run: async (client, interaction) => {
|
|
|
|
|
|
|
|
let invite = new MessageEmbed()
|
|
|
|
.setAuthor(`Invite of ${client.user.username}`, `${client.user.displayAvatarURL({ format: 'png' })}`)
|
|
|
|
.setColor("#2f3136")
|
|
|
|
.setFooter(`© 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: [invite],components: [row], ephemeral: true });
|
|
|
|
},
|
2021-12-10 05:24:04 +00:00
|
|
|
};
|