Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

234
Vistas
MessageEmbed no está definido (discord.js v13)

¡Tengo este problema donde siempre dice que MessageEmbed is not defined ! no se porque dice eso por favor ayudenme! ¡He intentado resolver este problema pero nada resolvió el problema!

 const wait = require('util').promisify(setTimeout); const OWNER_ID = require("../../config.json").OWNER_ID; const { MessageEmbed }= require('discord.js'); require('dotenv').config(); var token = process.env.BOT_TOKEN; module.exports = { name: "restart", description: "restarts the bot", async execute(interaction, client) { const logMsg = `Command Used: \`RESTART\` \nUser: \`${interaction.user.id}\` \nChannel: \`${interaction.channel.id} (${interaction.channel.name})\``; client.channels.cache.get(client.config.errorLog).send(logMsg); try { if (interaction.user.id != OWNER_ID || ID) { await interaction.reply({content: "RESTARRR...",ephemeral: true}); await wait(1000); await interaction.editReply({content:"Wait ... What?!",ephemeral: true}); await wait(2000); return await interaction.editReply({content:"Bruh! You are not a developer, this command is not for you : )",ephemeral: true}); } await interaction.reply("RESTARTING FAST AS F BOIIIIII ...").then((m) => { client.destroy(BOT_TOKEN); }); await wait(2000).then((m) => { client.login(BOT_TOKEN); }); await interaction.editReply("Damn! I'm Back 🔥"); } catch(err) { const errTag = client.config.errTag; client.channels.cache.get(client.config.ERROR_LOGS_CHANNEL).send(`**ERROR!** ${errTag} \n${err}\nCommand: \`RESTART\` \nChannel: \`${interaction.channel.id} (${interaction.channel.name})\` \n User: \`${interaction.user.id}\`\n`); } }, };

¡He intentado resolver este problema pero no pasó nada!

aquí el código en el archivo command.js

 timestamps.set(message.author.id, now); setTimeout(() => timestamps.delete(message.author.id), cooldownAmount); try { command.run(client, message, args, p, cooldowns); } catch (error) { console.error(error); let embed2000 = new MessageEmbed() .setDescription("There was an error executing that command.") .setColor("BLUE"); message.channel.send({ embeds: [embed2000] }).catch(console.error); } };
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda