` @commands.command(aliases=['ava', 'аватарка']) async def avatar(self, ctx, *, member: discord.Member = None): if not member: member = ctx.message.author userAvatar = member.avatar
embed = discord.Embed(color=discord.Color.darker_grey(), timestamp=ctx.message.created_at)
embed.set_author(name=f'Аватар {member}')
embed.set_image(url=member.avatar)
embed.set_footer(text=f'Выполнено {ctx.author}', icon_url=ctx.author.avatar)
await ctx.send(embed=embed)
if member:
embed = discord.Embed(color=discord.Color.darker_grey(), timestamp=ctx.message.created_at)
embed.set_author(name=f'Аватар {member}')
embed.set_image(url=member.avatar)
embed.set_footer(text=f'Выполнено {ctx.author}', icon_url=ctx.author.avatar)
await ctx.send(embed=embed)`