Billy/commands/server.js

11 lines
368 B
JavaScript
Raw Normal View History

2021-11-09 09:34:55 +01:00
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = {
data: new SlashCommandBuilder()
.setName('server')
.setDescription('Replies with Server info!'),
async execute(interaction) {
await interaction.reply({content:`Server name: ${interaction.guild.name}\nTotal members: ${interaction.guild.memberCount}` , ephemeral:true});
2021-11-09 09:34:55 +01:00
},
};