Answers for "discord js get specific user from users"

10

discord.js get user by id

client.users.cache.find(user => user.id === 'USER-ID')
Posted by: Guest on October-20-2020
0

discord.js get user by username

client.users.cache.find(user => user.username == 'USERMAME')
Posted by: Guest on July-25-2021
0

discord js get specific user from users

client.users.cache.get("ID")
Posted by: Guest on March-20-2021
0

discord js get specific user from users

// You can use .get() with an ID, or find() with a parameter to compare

client.users.cache.get('ID')
client.users.cache.find(user => user.username === "Specific username")
client.users.cache.find(user => user.tag === "Specific username#1234")
Posted by: Guest on October-07-2021

Code answers related to "discord js get specific user from users"

Code answers related to "Javascript"

Browse Popular Code Answers by Language