@bot.slash_command() async def ac(ctx, участник: disnake.Member): if участник.avatar: await ctx.send(f'Аватарка: {участник.avatar.url}', ephemeral=True) else: await ctx.send(f'Аватарки нет', ephemeral=True)