TheOchulus/commands/testing/server.js

9 lines
345 B
JavaScript

import { SlashCommandBuilder } from 'discord.js';
export const data = new SlashCommandBuilder()
.setName('server')
.setDescription('Provides information about the server.');
export async function execute(interaction) {
await interaction.reply(`This server is ${interaction.guild.name} and has ${interaction.guild.memberCount} members.`);
}