aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/evergreen/rps.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/evergreen/rps.py b/bot/exts/evergreen/rps.py
index 2634be21..dcb7dce1 100644
--- a/bot/exts/evergreen/rps.py
+++ b/bot/exts/evergreen/rps.py
@@ -37,8 +37,7 @@ class RPS(commands.Cog):
player_mention = ctx.author.mention
if move not in CHOICES and move not in SHORT_CHOICES:
- await ctx.send(f"Invalid move. Please make move from options: {', '.join(CHOICES).upper()}.")
- return
+ raise commands.BadArgument(f"Invalid move. Please make move from options: {', '.join(CHOICES).upper()}.")
bot_move = choice(CHOICES)
# value of player_result will be from (-1, 0, 1) as (lost, tied, won).