title: Discord JS: Extracting data from a collection
body: <p>I have a command where I want to write the <code>id</code> of a user in a voice channel into an array. So far, I managed to write the whole collection of the user with <code>joinedTimestamp</code> etc. Now I want to extract the <code>id</code> of the user from the collection.</p>
  <p>My command looks like this:</p>
  <pre><code>client.on('messageCreate', (message) =&gt; {
      let waitingroom = message.guild.channels.cache.get(&quot;952324088762867722&quot;)
      let player = [];
      let isadmin = message.member.roles.cache.has(adminRole);
  
      if (message.content.toLowerCase() === prefix + 'startgame' &amp;&amp; isadmin) {
          player.push(waitingroom.members);
          console.log(player);
      }    
  });
  </code></pre>
  <p>And this is what I get from the array when 2 users are in the <code>waitingroom</code>:</p>
  <pre><code>[
    Collection(2) [Map] {
      '392776445375545355' =&gt; GuildMember {
        guild: [Guild],
        joinedTimestamp: 1646940658665,
        premiumSinceTimestamp: null,
        nickname: null,
        pending: false,
        communicationDisabledUntilTimestamp: null,
        _roles: [Array],
        user: [User],
        avatar: null
      },
      '849388169614196737' =&gt; GuildMember {
        guild: [Guild],
        joinedTimestamp: 1647168003344,
        premiumSinceTimestamp: null,
        nickname: 'Test-Account [Nils]',
        pending: false,
        communicationDisabledUntilTimestamp: null,
        _roles: [],
        user: [User],
        avatar: null
      }
    }
  ]
  </code></pre>
  <p>But I only want the user <code>id</code>s from the collection. I appreciate any help.</p>