TheOchulus/commands/testing/server.js

9 lines
345 B
JavaScript
Raw Normal View History

2023-11-20 00:59:41 +01:00
import { SlashCommandBuilder } from 'discord.js';
2023-11-18 00:24:32 +01:00
2023-11-20 00:59:41 +01:00
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.`);
}