server.js 347 B

12345678910
  1. const { SlashCommandBuilder } = require('discord.js');
  2. module.exports = {
  3. data: new SlashCommandBuilder()
  4. .setName('server')
  5. .setDescription('Provides information about the server.'),
  6. async execute(interaction) {
  7. await interaction.reply(`This server is ${interaction.guild.name} and has ${interaction.guild.memberCount} members.`);
  8. },
  9. };