diff options
author | 2021-05-07 13:47:43 -0400 | |
---|---|---|
committer | 2021-05-07 13:47:43 -0400 | |
commit | ae3ecb3ac46d90ebab1cb556fdc357848f45abb5 (patch) | |
tree | e5d3f080cd02144d7ba90078491b25faa36904f3 | |
parent | chore: Apply anand's suggested changes (diff) |
chore: Simplify the if statement
Co-authored-by: Anand Krishna <[email protected]>
-rw-r--r-- | bot/exts/valentines/be_my_valentine.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/valentines/be_my_valentine.py b/bot/exts/valentines/be_my_valentine.py index 1ce92203..b9cf6738 100644 --- a/bot/exts/valentines/be_my_valentine.py +++ b/bot/exts/valentines/be_my_valentine.py @@ -51,7 +51,7 @@ class BeMyValentine(commands.Cog): """Adds the lovefest role.""" user = ctx.author role = ctx.guild.get_role(Lovefest.role_id) - if Lovefest.role_id not in [role.id for role in ctx.message.author.roles]: + if role not in ctx.author.roles: await user.add_roles(role) await ctx.send("The Lovefest role has been added !") else: |