So I'm trying to get all the user IDs in my discord server. I am able to pull in a Collection Map however I'm not familiar with them so I would really appreciate it if someone could explain how I'm suppose to get everyone's IDs using this collection map. I really appreciate your help thanks!
Here is my code
const Discord = require('discord.js');
const bot = new Discord.Client();
const token = 'HIDDEN';
bot.on('ready', () => {
const list = bot.guilds.cache.get("HIDDEN");
console.log(list.members);
})
bot.login(token);