title: Invite logging DiscordJS v13 TypeError: Cannot read property 'inviter' of undefined
body: <p>Code</p>
  <pre><code>const id = &quot;815280236974964817&quot;
  client.on(&quot;ready&quot;, async () =&gt; {
      client.guilds.cache.get(id).invites.fetch().then(inv =&gt; {
          newInv = inv
      })
  })
  client.on(&quot;guildMemberAdd&quot;, async member =&gt;{
      if(member.guild.id !== id) return;
      member.guild.invites.fetch().then(gInvites =&gt;{
          const invite = gInvites.find((inv) =&gt; newInv.get(inv.code).uses &lt; inv.uses)
          console.log(invite.inviter.tag)
      }) 
  })
  </code></pre>
  <p>Error</p>
  <pre><code>                           ^
  
  TypeError: Cannot read property 'inviter' of undefined
  </code></pre>
  <p>This worked fine in discord.js v12
  I've the required intents enabled as well</p>