@bot.command()
@commands.has_role(1001787579018006630)
async def ban(ctx, member: discord.Member, *, reason):
if member == ctx.author:
embed = discord.Embed(color=discord.Color.red(), title="Ошибка", description="Вы не можете забанить самого себя!"
else:
await ctx.reply(f"Укажите участника и причины!")