From ec7e5bb86fce6b588030acde7ef7bdb7bea459c9 Mon Sep 17 00:00:00 2001 From: baz Date: Fri, 17 Nov 2023 23:24:32 +0000 Subject: [PATCH] Add server slash command --- commands/testing/server.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 commands/testing/server.js diff --git a/commands/testing/server.js b/commands/testing/server.js new file mode 100644 index 0000000..7024595 --- /dev/null +++ b/commands/testing/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.'); + }, +}; \ No newline at end of file