discord.js get users tag by id 1

discord.js get users tag by id

bot.users.cache.find(parms => parms.id == 'Put User Id Here')

Here is what the above code is Doing:
1. We’re creating a variable called ‘user’
2. We’re setting the variable ‘user’ to the user object of the user with the id ‘Put User Id Here’
3. We’re using the ‘find’ method to find the user object of the user with the id ‘Put User Id Here’
4. We’re using the ‘users.cache’ property to get the users in the cache
5. We’re using the ‘bot’ variable to access the bot object

Similar Posts