aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-05-07 13:47:43 -0400
committerGravatar GitHub <[email protected]>2021-05-07 13:47:43 -0400
commitae3ecb3ac46d90ebab1cb556fdc357848f45abb5 (patch)
treee5d3f080cd02144d7ba90078491b25faa36904f3
parentchore: 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.py2
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: