Add debug commands
This commit is contained in:
18
commands/debugInteraction.js
Normal file
18
commands/debugInteraction.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const { SlashCommandBuilder } = require("@discordjs/builders");
|
||||
const Discord = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName("debuginteraction")
|
||||
.setDescription("Console log interaction")
|
||||
.addStringOption((option) =>
|
||||
option
|
||||
.setName("message")
|
||||
.setDescription("Thy message")
|
||||
.setRequired(true)
|
||||
),
|
||||
async execute(interaction) {
|
||||
console.log(interaction);
|
||||
await interaction.reply("Check logs");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user