TheOchulus/commands/testing/server.js

10 lines
374 B
JavaScript
Raw Normal View History

2023-11-27 00:02:34 +01:00
const { SlashCommandBuilder } = require('discord.js');
2023-11-18 00:24:32 +01:00
2023-11-27 00:02:34 +01:00
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.`);
},
};