get username by id discord.js code example
Example 1: discord.js get user by id
client.users.cache.find(user => user.id === 'USER-ID')
Example 2: discord.js get username
message.author.username
Example 3: discord js get badge user
{
"id": "80351110224678912",
"username": "Nelly",
"discriminator": "1337",
"avatar": "8342729096ea3675442027381ff50dfe",
"verified": true,
"email": "[email protected]",
"flags": 64,
"premium_type": 1
}