2021-09-05 00:17:21 +00:00
|
|
|
import Discord from "discord.js";
|
|
|
|
|
2020-03-02 19:38:42 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'invite',
|
2020-08-25 06:35:39 +00:00
|
|
|
description: 'Invite Bot',
|
2020-03-02 19:38:42 +00:00
|
|
|
category: 'info',
|
2021-09-05 00:17:21 +00:00
|
|
|
execute(interaction, client) {
|
2020-03-12 22:53:23 +00:00
|
|
|
let message = {};
|
|
|
|
message.inviteTitle = client.messages.inviteTitle.replace("%client.user.username%", client.user.username);
|
2020-03-02 19:38:42 +00:00
|
|
|
const embed = new Discord.MessageEmbed()
|
2020-03-12 22:53:23 +00:00
|
|
|
.setTitle(message.inviteTitle)
|
2020-03-02 19:38:42 +00:00
|
|
|
.setColor(client.config.embedColor)
|
2021-09-01 14:55:28 +00:00
|
|
|
.setURL("https://discord.com/api/oauth2/authorize?client_id=" + client.user.id + "&permissions=2184465408&scope=applications.commands%20bot") //View Channels, Send Messages, Embed Links, Use External Emojis, Use Slash Commands, Connect, Speak, Use Voice Activity
|
2021-09-03 00:46:44 +00:00
|
|
|
.setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png')
|
2020-08-14 23:54:04 +00:00
|
|
|
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
|
2021-08-26 19:06:15 +00:00
|
|
|
|
|
|
|
interaction.reply({
|
|
|
|
embeds: [embed],
|
|
|
|
ephemeral: true
|
|
|
|
});
|
2020-03-02 19:38:42 +00:00
|
|
|
}
|
|
|
|
};
|