Holana/slash/invite.js
2023-04-29 21:59:08 +12:00

33 lines
No EOL
1.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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]});
}
}