someone knows maybe what's wrong here because I'm making a system that I need to get all users from all guilds. I did something like you can see below, but it doesn't work. The problem with this is that it only downloads users from the guild on which the command was executed, not all guilds. If anyone can help, please.
const Guilds = client.guilds.cache.map(guild => guild.id)
console.log(Guilds)
for(const g of Guilds){
msg.guild.members.cache.forEach(member => {
if(!member.user.bot){
in the line console.log(Guilds) I get all guilds id