server: commit initial file
This commit is contained in:
parent
896e437766
commit
880a9a0aa3
1 changed files with 10 additions and 0 deletions
10
commands/server.js
Normal file
10
commands/server.js
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
const { SlashCommandBuilder } = require('discord.js');
|
||||||
|
|
||||||
|
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.`);
|
||||||
|
},
|
||||||
|
};
|
Loading…
Reference in a new issue