How would I get an avatar's png in python?

So I have been experimenting with discord bots and python, and wanted to get an avatar’s png, the problem is I don’t know how to get an avatar’s png url because differently from an item’s png, it does not use the player/item id.

For Example:
to get the png, I would simply just do “” and it would give me the item’s png

As for Avatars, I do not know how to get to the url based on the id of user

For Example:” does not get to the avatar’s png

Any help wouuld be appreciated, again this is for python and not roblox studio, thank you for your time :smiley:

This post should be useful.


thank you for your help on providing this post :smiley: