Add server slash command

This commit is contained in:
baz 2023-11-17 23:24:32 +00:00
parent 2d181d2f5a
commit ec7e5bb86f
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
const { SlashCommandBuilder } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('server')
.setDescription('Provides information about the server.'),
async execute(interaction) {
await interaction.reply('This server is ${interaction.guild.name} and has ${interaction.guild.memberCount} members.');
},
};