I used discord.py to make a bot that stores the user ids in its database to identify them but I can't figure out how to get the avatar of a specific user just by using his id. I searched around and found about something like this - Client.get_user() but it doesn't work for me as I couldn't understand it's working from the documentation. Is there any way I can pick up a user id string from my database and pass it through a function to get that user's avatar and use that in an embed?
I found another question on StackOverflow like mine but the solution in that one doesn't work for me as well.