TypeError: MessageEmbed is not a constructor
I seem to keep getting this error when trying to setup the DM when they get banned I get this error
2|Fireball Beta | Error while banning: TypeError: MessageEmbed is not a constructor
2|Fireball Beta | at module.exports (/mnt/volume_tor1_01/Fireball-beta/src/commands/moderation/ban.js:26:19)
2|Fireball Beta | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
this is my code https://pastebin.com/6gVzzqUiPastebin
const Discord = require('discord.js');module.exports = async (clien...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
5 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!It's EmbedBuilder in v14
This is my DIscord.js
npm list discord.js
And this is the embed
Yes, it's EmbedBuilder instead of MessageEmbed in v14, check out the guide I linked above