title: 'Cannot read property 'cache' of undefined'
body: <p>I tried searching for this and how to fix it on StackOverflow already but couldn't find a valid answer in my situation.</p>
  
  <p>I am trying to create my bot status display how many users are in each server that it's in. Say, 1 server has 5 and a 2nd one has 5. It'd add the user counts together and display "I'm watching 10 users in 2 servers" or something of the sort.</p>
  
  <p>code:</p>
  
  <pre><code>            bot.guilds.cache.forEach((guild) =&gt; {
                guild.members.fetch().then(g =&gt; {
                    let count = 0;
                    g.members.cache.forEach((member) =&gt; { &lt;--- error occurs here
                        count++;
                    });
                    console.log(count);
                });
              });
  </code></pre>