Skip to content

Commit

Permalink
Replace multiple == checks with in
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsource-autofix[bot] authored Oct 17, 2021
1 parent 73e3415 commit b5615c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minato_namikaze/bot_files/cogs/moderation/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b5615c6

Please sign in to comment.