Leaderboard problem
Hello i have this code:
It doesn't update the embed, it says that no member found on the consol, but people have the hat emoji in their name.
9 Replies
You're only checking the cached members, so if a member is not cached, you're not even iterating through them to see
If you want to access all members, you'll need to use this function (which requires the 'GUILD_MEMBERS' intent)
But am i not caching all correctServer members @squiddleton
You're filtering through the members that are already cached, but the cache isn't automatically full of every member in the guild
so somthing like dis?
@squiddleton
The fetch returns a promise, not the filter
So you need to move your await
So how could i do that?
Move the await so that it resolves the promise returned by the .fetch()
Just ctrl+X and paste it one line up