aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Shivansh-007 <[email protected]>2021-02-05 06:43:25 +0530
committerGravatar Shivansh-007 <[email protected]>2021-02-05 06:43:25 +0530
commitae518304b130af53846d8cbd425463661dbc068f (patch)
treef72e8f908a1d4663b74ba1a4d1fc5426d5413a13
parentIntial Commit; Change secret functionality and fix member intents issue (diff)
Fix return statements and return type annotations
-rw-r--r--bot/exts/valentines/be_my_valentine.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bot/exts/valentines/be_my_valentine.py b/bot/exts/valentines/be_my_valentine.py
index 818d539a..41959409 100644
--- a/bot/exts/valentines/be_my_valentine.py
+++ b/bot/exts/valentines/be_my_valentine.py
@@ -85,15 +85,18 @@ class BeMyValentine(commands.Cog):
if ctx.guild is None:
# This command should only be used in the server
msg = "You are supposed to use this command in the server."
- return await ctx.send(msg)
+ await ctx.send(msg)
+ return
if Lovefest.role_id not in [role.id for role in user.roles]:
message = f"You cannot send a valentine to {user} as he/she does not have the lovefest role!"
- return await ctx.send(message)
+ await ctx.send(message)
+ return
if user == ctx.author:
# Well a user can't valentine himself/herself.
- return await ctx.send("Come on dude, you can't send a valentine to yourself :expressionless:")
+ await ctx.send("Come on dude, you can't send a valentine to yourself :expressionless:")
+ return
emoji_1, emoji_2 = self.random_emoji()
channel = self.bot.get_channel(Channels.community_bot_commands)