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

155
Views
Discord.js Exception embed author name has to be a string only accurse on Heroku

Hello Im having an utterly bizzare issue

Basically im currently trying to make an embed

        const error_embed = new Discord.MessageEmbed()
        .setColor('#c00be0')
        .setTitle("To use this command please mention a user")
        .setAuthor({ name: msg.author.tag + ' ', iconURL: msg.author.avatarURL() })

This is my current code

Now something utterly bizzare happens

Whenever im testing this code on my local machine it works perfectly without an issue

However whenever I deploy the code on Heroku it for some reason fails with the exception

MessageEmbed author name must be a string

If you dont know a lot about heroku please note that

Heroku uses the same node engine that I am using

Heroku uses the same discord.js version I am using

I have tried a few things to troubleshoot the issue

I first attempted to make the name a normal non variable string

this failed again

I also attempted to convert the content of the variable to string via the string.toString() method

Please note that this issue is for some reason exclusive to heroku

The code is the same

The modules are the same

The node version is the same

and it works perfectly on my pc

about 4 years ago · Juan Pablo Isaza
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!