mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-01-11 21:54:49 +00:00
21 lines
1.0 KiB
JavaScript
21 lines
1.0 KiB
JavaScript
module.exports = {
|
|
name: 'invite',
|
|
description: 'Invite Bot',
|
|
permission: 'none',
|
|
category: 'info',
|
|
execute(interaction, client, Discord, command) {
|
|
let message = {};
|
|
message.inviteTitle = client.messages.inviteTitle.replace("%client.user.username%", client.user.username);
|
|
const embed = new Discord.MessageEmbed()
|
|
.setTitle(message.inviteTitle)
|
|
.setColor(client.config.embedColor)
|
|
.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
|
|
.setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png')
|
|
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
|
|
|
|
interaction.reply({
|
|
embeds: [embed],
|
|
ephemeral: true
|
|
});
|
|
}
|
|
}; |