title: Discord.js bot doesn't assign roles to new members
body: <p>For some reason, the bot I wrote using Node.js and Discord.js does not assign roles to members when they join. Can someone please help?</p>
  <pre class="lang-js prettyprint-override"><code>bot.on(&quot;guildMemberAdd&quot;, function (member) {
      member.guild.channels
          .find(&quot;name&quot;, &quot;general&quot;)
          .send(
              member.toString() +
                  &quot; Welcome to the server. All your base are belong to us.&quot;
          );
      member.add(member.guild.roles.find(&quot;name&quot;, &quot;Honorable Member&quot;));
  });
  </code></pre>
  <p>I've tried both <code>member.add</code> and <code>member.addRole</code>, nothing I do seems to have any effect. I'm not even getting an error message of any kind, the code just doesn't seem to be executing.</p>