| import { CommandInteraction, ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"; |
| import type { SlashCommandSubcommandBuilder } from "discord.js"; |
| import EmojiEmbed from "../../utils/generateEmojiEmbed.js"; |
| import client from "../../utils/client.js"; |
| const command = (builder: SlashCommandSubcommandBuilder) => |
| builder.setName("invite").setDescription("Invites Nucleus to your server"); |
| const callback = async (interaction: CommandInteraction): Promise<void> => { |
| await interaction.reply({ |
| .setDescription("You can invite Nucleus to your server by clicking the button below") |
| .setEmoji("NUCLEUS.LOGO") |
| new ActionRowBuilder<ButtonBuilder>().addComponents([ |
| .setStyle(ButtonStyle.Link) |
| `https://discord.com/api/oauth2/authorize?client_id=${ |
| }&permissions=407900777662&scope=bot%20applications.commands` |