From 2bc5035384798687e7ccb83f8730b07c3d1b2837 Mon Sep 17 00:00:00 2001 From: Minzkraut Date: Wed, 13 Apr 2022 16:40:46 +0200 Subject: [PATCH] Add echo command --- commands/echo.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 commands/echo.js diff --git a/commands/echo.js b/commands/echo.js new file mode 100644 index 0000000..fa3a436 --- /dev/null +++ b/commands/echo.js @@ -0,0 +1,19 @@ +const { SlashCommandBuilder } = require("@discordjs/builders"); + +module.exports = { + data: new SlashCommandBuilder() + .setName("echo") + .setDescription("Ping, yes") + .addStringOption((option) => + option + .setName("message") + .setDescription("Thy message") + .setRequired(true) + ), + async execute(interaction) { + interaction.reply({ + content: "Pong: " + interaction.options.getString("message"), + ephemeral: true + }); + } +} \ No newline at end of file