2024-02-09 09:53:30 +00:00
|
|
|
const { EmbedBuilder } = require("discord.js");
|
|
|
|
|
2019-08-02 08:32:00 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'invite',
|
|
|
|
description: 'Invite command.',
|
2019-10-31 18:29:26 +00:00
|
|
|
alias: 'invite',
|
2019-08-02 08:32:00 +00:00
|
|
|
cooldown: 5,
|
2024-02-09 09:53:30 +00:00
|
|
|
execute(message, args, client, prefix) {
|
|
|
|
const embed = new EmbedBuilder()
|
2019-12-05 13:17:15 +00:00
|
|
|
.setTitle(`Invite ${client.user.username} to your Discord server!`)
|
2024-02-09 09:53:30 +00:00
|
|
|
.setURL(`https://discord.com/oauth2/authorize?client_id=${client.user.id}&permissions=2184465408&scope=applications.commands+bot`)
|
2019-12-05 13:17:15 +00:00
|
|
|
.setColor(client.config.embedColor)
|
2024-02-09 09:53:30 +00:00
|
|
|
return message.channel.send({ embeds: [embed] });
|
2019-08-02 08:32:00 +00:00
|
|
|
}
|
2024-02-09 09:53:30 +00:00
|
|
|
};
|