let guild = client.guilds.cache.get(msg.guild.id); guild.members.cache.each((member)=>{ console.log(member); }); logs only my id and the bots id. Anyone know the solution?
The question has been answerd already here. If it still doesn't work, have you turned the gateway intents on in the Discord developer portal?
.each and .forEach, both worked for me..
each? Did you meanforEach?