Cuando intento usar este comando de barra diagonal, dice 'Comando de aplicación de interacción no válido'. ¿Cómo puedo solucionar esto? Puedo mostrar más código si es necesario.
const Command = require('../structures/command.js'); const config = require('../data/config.json'); const { MessageEmbed } = require('discord.js'); const Discord = require('discord.js'); module.exports = new Command({ name: "ping", description: "Shows the ping of the bot.", type: "BOTH", slashCommandOptions: [], permission: "ADMINISTRATOR", async run(message, args, client) { if (message.author.id === config.dev) { // const pingEmbed = new MessageEmbed() // .setTitle(`Bot Ping: ${client.ws.ping} ms`) // .setAuthor('System') // // .setFooter(`${client.ws.ping} ms`) // .setColor('5FA6E0') const m = await message.reply(`Bot Ping: ${client.ws.ping} ms`); const msg = message instanceof Discord.CommandInteraction ? await message.fetchReply() : m; msg.edit(`Ping: ${client.ws.ping} ms\nMessage Ping: ${msg.createdTimestamp - message.createdTimestamp} ms`); } else { message.reply(`Must be a developer to use the command [${this.name}]`); } } });