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