title: Discord JS - Getting the nickname of a user who dm's the bot
body: <p>I want to get the server nickname of a user that is in the same server as the bot when the user dm's the bot. </p>
  
  <p>I've tried: message.author.guild.members.get(message.author.id).displayName and message.author.displayName, 1st one crashes the bot, the 2nd returns the nickname as "undefined". For now I have it set to message.author.username, but this gives me the username, and I need the nickname.</p>
  
  <pre class="lang-js prettyprint-override"><code>if(message.channel.type === "dm" &amp;&amp; message.content === 'specific message') {
  
       let bicon = bot.user.displayAvatarURL;
       let botembed = new Discord.RichEmbed()
       .setTitle("**Log**")
       .setDescription("**" + message.author.username + "** messaged me!")
       .setColor("#F54603")
       .setTimestamp()
  
       return bot.channels.get("584424339986710540").send(botembed);
  </code></pre>
  
  <p>I believe what needs to be done is, the bot retrieves the user ID from the user that DM's the bot, then searches for that user ID in the server and then get's the displayName. However, I have no idea how to do that.</p>