userUpdate for global users

Does the userUpdate event work for cached users only ? And not for all discord users
20 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
mris
mris2y ago
ah thanks
Parogo_72
Parogo_722y ago
It works for every user the client has access to
mris
mris2y ago
its a real bummer tbh
Parogo_72
Parogo_722y ago
Doesnt matter if they are cached or not
mris
mris2y ago
well uh
Parogo_72
Parogo_722y ago
But the client needs to share a guild with them
mris
mris2y ago
ah yeah
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
mris
mris2y ago
yeah yeah def aight thanks im sorry i has another question so i had a weird problem with client.users.fetch() its supposed to fetch any discord user i want right ?
Parogo_72
Parogo_722y ago
Yes
mris
mris2y ago
so i have an eval cmd i tested an id with it and it returned a user not found error and used an id lookup site and it said the same BUT i used client.users.fetch in my ready.js and it logged fine
Parogo_72
Parogo_722y ago
Show both codes
mris
mris2y ago
aight
mris
mris2y ago
mris
mris2y ago
Parogo_72
Parogo_722y ago
The ids are different 4400 and 4462
mris
mris2y ago
how's that even possible cuz like ok im gonna tell what i did
Parogo_72
Parogo_722y ago
If you store them as numbers, they get rounded Because they are bigInts You need to store them as strings
mris
mris2y ago
ah shit that explains it thanks