Add echo command

This commit is contained in:
Minzkraut
2022-04-13 16:40:46 +02:00
parent 798b2b542c
commit 2bc5035384

19
commands/echo.js Normal file
View File

@@ -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
});
}
}