Add echo command
This commit is contained in:
19
commands/echo.js
Normal file
19
commands/echo.js
Normal 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
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user