title: Is there a way to make RichEmbed methods work in Heroku?
body: <p>When attempting to use this code I got the error below:</p>
  
  <pre class="lang-js prettyprint-override"><code>const embed = new RichEmbed();
  
  var num = Math.floor(Math.random() * 10);
  let name = part + num + ".gif";
  
  embed.attachFiles([name]);
  embed.setImage('attachment://' + name);
  
  mess.channel.send(embed);
  </code></pre>
  
  <pre class="lang-none prettyprint-override"><code>TypeError: embed.attachFiles is not a function
  </code></pre>
  
  <p>I if I delete away <code>embed.attachFiles([name])</code> I get an error saying that <code>embed.setImage</code> isn't a function either.<br>
  Is there anything I can do to make Heroku register these as functions? It is worth noting that <strong>this worked outside of Heroku</strong>, when I ran it using the command line on my own computer. </p>