discord py geuser avatar code example
Example: How to get a user's avatar with their id in discord.py?
@commands.command()
async def avatar(self, ctx, *, avamember : discord.Member=None):
userAvatarUrl = avamember.avatar_url
await ctx.send(userAvatarUrl)