Constructor error

I have been encountering an annoying issue with my bot. I am very new to bot developing, however have been having some people help me out.

Here is the help.js code:

const { embed } = require('discord.js')
exports.run = (client, msg, args) => {
const image = new embed()
//embed stuffs
msg.channel.send(embed);
};

The error is TypeError: embed is not a constructor. No idea how to fix that.

RESOLVED! Just had to change embed to MessageEmbed

1 Like

Yes, you need to use MessageEmbed. :slight_smile:

2 Likes