Add server slash command
This commit is contained in:
parent
2d181d2f5a
commit
ec7e5bb86f
|
@ -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.');
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue