title: Get avatar of an user in discord.js that doesn't share the same server
body: <p>I have a small problem with my bot. For developing my bot, I made a new dev-bot which shares the same code as my normal bot, but has it's own token.
  However, I ran into a small issue while developing.</p>
  
  <p>I use this code, to get someones' avatar:</p>
  
  <pre><code>client.users.get(event.user.uid).avatarURL
  </code></pre>
  
  <p>This works fine on my normal but, however on my Dev-Bot I get this error message:</p>
  
  <pre><code>Error getting documents TypeError: Cannot read property 'AvatarURL' of undefined
  </code></pre>
  
  <p>I think it's due to the fact, that my Bot can't access the avatar of the user, because it doesn't share the same server/guild as this user.</p>
  
  <p>Is there any workaround I could use?</p>