title: How can i filter all users badges | DiscordJS V12
body: <p>I'm trying to do a command to list every users with a certain type of flags, like <strong>&quot;HYPESQUAD_BALANCE&quot;</strong></p>
  <pre class="lang-js prettyprint-override"><code>const users = message.mentions.members.first() || message.guild.members.cache.get(args[0]) || message.member;
  const flags = await users.user.fetchFlags()
  const userFlags = flags.toArray()
  const status = userFlags.includes('HYPESQUAD_BALANCE')
  console.log(status)
  </code></pre>
  <p>That part of command working fine, but that's not what i want, i want to get every users</p>
  <p><strong><strong>So i have tried that</strong></strong></p>
  <pre class="lang-js prettyprint-override"><code>const members = client.users.cache.array()
      const array = [];
      for (const user of members) array.push(user.flags ? user.flags : await user.fetchFlags());
      console.log(array)
  </code></pre>
  <p>No error, but returning anything, if someone can help me</p>