From 08b75d376e4cbc764fd8309140aef81b696fd4b7 Mon Sep 17 00:00:00 2001 From: baz Date: Fri, 17 Nov 2023 23:24:15 +0000 Subject: [PATCH] Add ping slash command --- commands/testing/ping.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 commands/testing/ping.js diff --git a/commands/testing/ping.js b/commands/testing/ping.js new file mode 100644 index 0000000..a27265b --- /dev/null +++ b/commands/testing/ping.js @@ -0,0 +1,10 @@ +const { SlashCommandBuilder } = require('discord.js'); + +module.exports = { + data: new SlashCommandBuilder() + .setName('ping') + .setDescription('Replies with pong!'), + async execute(interaction) { + await interaction.reply('Pong!'); + }, +}; \ No newline at end of file