11 lines
341 B
JavaScript
11 lines
341 B
JavaScript
const { SlashCommandBuilder } = require('@discordjs/builders');
|
|
|
|
module.exports = {
|
|
data: new SlashCommandBuilder()
|
|
.setName('server')
|
|
.setDescription('Replies with Server info!'),
|
|
async execute(interaction) {
|
|
await interaction.reply(`Server name: ${interaction.guild.name}\nTotal members: ${interaction.guild.memberCount}`);
|
|
},
|
|
};
|