From b5615c67fe80e28b874ec593bf3208859a871209 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 17 Oct 2021 17:49:16 +0000 Subject: [PATCH] Replace multiple `==` checks with `in` --- minato_namikaze/bot_files/cogs/moderation/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minato_namikaze/bot_files/cogs/moderation/moderation.py b/minato_namikaze/bot_files/cogs/moderation/moderation.py index 4747fa4f..f26623d2 100644 --- a/minato_namikaze/bot_files/cogs/moderation/moderation.py +++ b/minato_namikaze/bot_files/cogs/moderation/moderation.py @@ -71,7 +71,7 @@ async def ban( reason: ActionReason = None, ): """A command which bans a given user""" - if ctx.message.author == member or ctx.message.author.id == member: + if member in (ctx.message.author, ctx.message.author.id): await ctx.send(embed=ErrorEmbed(description="You **can't ban yourself**!")) return try: