Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

157
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda