Is there a way to make RichEmbed methods work in Heroku? Is there a way to make RichEmbed methods work in Heroku? heroku heroku

Is there a way to make RichEmbed methods work in Heroku?


Heroku by itself does not modify the behavior of discord.js. Here's a list of things you can try:

  • Verify that your package.json file is updated with the version of discord.js you want and run npm i to make sure the version on your pc is the same*.
  • Make sure that RichEmbed is Discord.RichEmbed: try to write it explicitly to see if that helps.
  • Try to console.log(embed) and see what gets logged in the console: that might give you a clue of what the problem is...

* The RichEmbed.attachFile() method was added in the 11.0.0 version: any previous version of discord.js won't allow you to use it.