I'm trying to make an embed in discord.js and it keeps giving errors

module.exports = {
    name: 'clear',
    description: "Clears a select amount of messages",
    execute(message, args, Discord, amount=5){

        const newEmbed = new Discord.MessageEmbed()
        .setColor('#304281')
        .setTitle('Not enough power!')
        .setDescription('')
        .addFields(
            {name: '', value: 'You dont have the required permission to use this command'}
        )
        .setFooter('More Coming Soon!');

        if(message.member.permissions.has("MANAGE_MESSAGES" || "ADMINISTRATOR")){
            message.channel.send('this should clear messages lol')
        
        } else {
            channel.send(newEmbed);
        } 
    }
}

Thats my code to try make the embed. The error i keep getting is:

"const newEmbed = new Discord.MessageEmbed()

TypeError: Cannot read property ‘MessageEmbed’ of undefined"

Any help would be greatly appreciated

153 thoughts on “I'm trying to make an embed in discord.js and it keeps giving errors”

  1. Pingback: otc viagra
  2. Pingback: cialis on the web
  3. Pingback: viagra drug
  4. Pingback: cialis strength
  5. Pingback: cheapest viagra
  6. Pingback: sildenafil coupon
  7. Pingback: viagra by mail
  8. Pingback: cialis 10 mg
  9. Pingback: viagra wirkung
  10. Pingback: cost for viagra
  11. Pingback: chewable viagra
  12. Pingback: sildenafil
  13. Pingback: sildenafil viagra
  14. Pingback: viagra dosages
  15. Pingback: viagra price
  16. Pingback: viagra for women
  17. Pingback: herbal viagra
  18. Pingback: buy viagra online
  19. Pingback: teva sildenafil