add invite command

This commit is contained in:
2023-06-16 23:08:20 +02:00
parent 2551d8e996
commit a8a662e2ed
+14
View File
@@ -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' })
}
}