Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

239
Views
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

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

All you have to do is change message.channel.send(embed) to message.channel.send({ embeds: [embed] }) 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.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!