From a8a662e2ed71edb8235d5b7d362223a08c6d2d38 Mon Sep 17 00:00:00 2001 From: Legonzaur Date: Fri, 16 Jun 2023 23:08:20 +0200 Subject: [PATCH] add invite command --- src/commands/invite.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/commands/invite.ts diff --git a/src/commands/invite.ts b/src/commands/invite.ts new file mode 100644 index 0000000..6d5d1dc --- /dev/null +++ b/src/commands/invite.ts @@ -0,0 +1,14 @@ +import { + type CommandInteraction, + SlashCommandBuilder +} from 'discord.js' + +module.exports = { + global: true, + data: new SlashCommandBuilder() + .setName('invite') + .setDescription('Invite this bot into your server'), + async execute (interaction: CommandInteraction) { + await interaction.reply({ content: 'https://discord.com/api/oauth2/authorize?client_id=1118990136236068965&permissions=2048&scope=bot%20applications.commands' }) + } +}