discord identity python html avatar

@client.command()
async def avatar(ctx, *,  avamember : discord.Member=None):
    userAvatarUrl = avamember.avatar_url
    await ctx.send(userAvatarUrl)

Here is what the above code is Doing:
1. We’re defining a command called avatar.
2. We’re giving it a parameter called avamember.
3. We’re setting the default value of avamember to None.
4. We’re setting the type of avamember to discord.Member.
5. We’re getting the avatar URL of the user.
6. We’re sending the avatar URL to the channel.