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

408
Vistas
TypeError: Cannot read property 'get' of undefined Discord.js Error

at module.exports (/Users/beyoki/Desktop/Coding/8FE Bot/events/guild/message.js:8:37)

Making a discord bot, working on getting it to work inside my server, and any time i use my code for an embed

(code Below)

const { MessageEmbed } = require("discord.js")

module.exports = {
    name: 'seed',
    description: "seed time baby, Whos ready?",
    execute(message, args, Discord){
        const seedEmbed = new MessageEmbed()
        .setColor('#0099ff')
        .setTitle('Seed Time!')
        .setDescription('Click on the reaction to let us know if you are able to seed with us')
        .setFooter('Made by Beyoki#9983')
        .setImage('https://imgur.com/4pD7GvP')
        message.channel.send({embeds: [newEmbed]});
    }
}

And the message handler code

module.exports = (Discord, client, message) => {
    const prefix = ';';
    if(!message.content.startsWith(prefix) || message.author.bot) return;

    const args = message.content.slice(prefix.length).split(/ +/);
    const cmd = args.shift().toLowerCase();

    const command = client.commands.get(cmd);

    if(command) command.execute(client, message, args, Discord);
}
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

client.command is not defined, not a issue by discord.js

about 4 years ago · Juan Pablo Isaza Denunciar
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