1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-22 21:13:18 +00:00
musix-oss/commands/invite.js

16 lines
586 B
JavaScript
Raw Normal View History

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.',
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
};