Getting guild members on a sharded bot

I want to check if a user is present in a guild on the userUpdate event
im doing this
client.guilds.cache.forEach(async (g) => {
  if(!g.members.cache.get(id)) return;
}

now since i sharded my bot i gotta use fetchClientValues ( i think )
and the fetch client values for guilds.cache returns an array inside an array with 2 objects of the guilds the bot is in but they are no the full member object... they have a member property which is also an array but only has the cached member id ( only an array of id's ) s
accessing the sharded guild object:
let res = await client.shard.fetchClientValues(`guilds.cache`);
res[0][0] //----> guild object ( not the full one )
res[0][0].members // ----> [ id1, id2, id3, ... ]

so is there any other method for what i need ?
Was this page helpful?