Answers for "how to get user id discord using username"

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

Code answers related to "how to get user id discord using username"

Code answers related to "Javascript"

Browse Popular Code Answers by Language