discord.py get user id by name code example
Example 1: discord.js get user by id
client.users.cache.find(user => user.id === 'USER-ID')
Example 2: how to get username with userid discord.py
username = client.get_user(user_id)
client.users.cache.find(user => user.id === 'USER-ID')
username = client.get_user(user_id)