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') = (client, msg, args) => {
const image = new embed()
//embed stuffs;

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: