title: Discord.js | Fetching data when bot has been added to a new server
body: <p>Is this safe to be added on the function once you added a bot to a server or I can be abused?
  I'm kinda scared of getting banned or rate limited So I want to make sure that everything is safe. Currently the fetch in Docs v12 is not that well documented and lack of infos about this. All I know is it fetch all data to the server. The reason I need this is to get all of the information like roles, members, etc because when trying to list all members that has the specific role all try to list members without roles it require me to fetch data since if I don't instead of members(100) it will only fetch like members(3) since the cache is not yet ready or data is not fully loaded to the cache.</p>
  <pre class="lang-js prettyprint-override"><code>        await message.guild.members.fetch()
          .then(console.log)
  </code></pre>
  <p>Currently I have this command /fetch which will fetch the data with a 1 hour cooldown. I am planning to remove this and add it to &quot;once they added the bot&quot; function. I use this fetch to instances/commands like listing users without roles</p>
  <pre class="lang-js prettyprint-override"><code>message.guild.members.cache.filter(member =&gt; member.roles.cache.array().length &lt; 2).map(member =&gt; member.user.tag);
  </code></pre>
  <p>If you have like recommendation or a better way to do this you can check the project at <a href="https://github.com/mashwishi/PruneBot/tree/master/commands/custom" rel="nofollow noreferrer">PruneBot/commands/custom</a> where full code of this is included:</p>
  <ul>
  <li><a href="https://github.com/mashwishi/PruneBot/blob/master/commands/custom/fetch.js" rel="nofollow noreferrer">fetch data</a></li>
  <li><a href="https://github.com/mashwishi/PruneBot/blob/master/commands/custom/knorole.js" rel="nofollow noreferrer">kick no role</a></li>
  <li><a href="https://github.com/mashwishi/PruneBot/blob/master/commands/custom/krole.js" rel="nofollow noreferrer">kick users with specific role</a></li>
  <li><a href="https://github.com/mashwishi/PruneBot/blob/master/commands/custom/unorole.js" rel="nofollow noreferrer">list users without role</a></li>
  <li><a href="https://github.com/mashwishi/PruneBot/blob/master/commands/custom/urole.js" rel="nofollow noreferrer">list users with specific role</a></li>
  </ul>