Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

415
Views
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 answers
Answer question

0

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

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!