33 lines
No EOL
1.3 KiB
JavaScript
33 lines
No EOL
1.3 KiB
JavaScript
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js');
|
||
const config = require('../config.json');
|
||
|
||
module.exports = {
|
||
name: 'invite',
|
||
description: '➕ Invite the bot to your server!',
|
||
run: async (client, interaction) => {
|
||
const row = new ActionRowBuilder()
|
||
.addComponents(
|
||
new ButtonBuilder()
|
||
.setLabel(`Invite ${client.user.username}`)
|
||
.setStyle(ButtonStyle.Link)
|
||
.setEmoji('973537545289875486')
|
||
.setURL(`https://discord.com/api/oauth2/authorize?client_id=726333575091454002&permissions=406881561681&scope=bot%20applications.commands`),
|
||
)
|
||
let invite = new EmbedBuilder()
|
||
.setAuthor({
|
||
name: `Invite ${client.user.username}`,
|
||
iconURL: client.user.displayAvatarURL()
|
||
})
|
||
.setTitle("Invite & Support Link!")
|
||
.setDescription(`I'm A Giveaway bot to host Giveaways easily on your server with multiple options, Including role requirements, bonus roles, bonus points and server joinings. Get started with Holana today!`)
|
||
.setColor('#2F3136')
|
||
.setTimestamp()
|
||
.setThumbnail('https://ellie.gcoms.xyz/Ellise.png')
|
||
.setFooter({
|
||
text: `©️ Holana`,
|
||
iconURL: ('https://ellie.gcoms.xyz/Ellise.png')
|
||
})
|
||
|
||
interaction.reply({ embeds: [invite], components: [row]});
|
||
}
|
||
} |