Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Discord.js embedded message error while as far as I know everything is there

Can someone tell me why I keep getting an error? Says it can’t send a empty message when running it.

Image 1

Image 2

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

All you have to do is change message.channel.send(embed) to message.channel.send({ embeds: }) since when you use message.channel.send(embed), Discord thinks that the variable embed must be a string and tries to send it but it realises that it isn’t and therefore the error happens.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading