From 880a9a0aa3f603f50d82f5dcc96c33b8b6f85b9f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 21 Aug 2023 11:27:35 -0400 Subject: [PATCH] server: commit initial file --- commands/server.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 commands/server.js diff --git a/commands/server.js b/commands/server.js new file mode 100644 index 0000000..277a28a --- /dev/null +++ b/commands/server.js @@ -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.`); + }, +};