From a8c982e066941bf6c8319404d0b4404b62fb0547 Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Fri, 2 Apr 2021 20:58:44 +0200 Subject: [PATCH] :bug: Bug fix in blackjack --- funcs/games/blackjack.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/funcs/games/blackjack.py b/funcs/games/blackjack.py index 9b5d001..6bad085 100644 --- a/funcs/games/blackjack.py +++ b/funcs/games/blackjack.py @@ -173,7 +173,7 @@ class Blackjack(): # When players try to hit async def hit(self, ctx, handNumber = 0): try: - ctx.defer() + await ctx.defer() except: self.bot.log("Defer failed") channel = str(ctx.channel_id) @@ -199,7 +199,7 @@ class Blackjack(): elif hand["standing"]: logMessage = "They're already standing" sendMessage = "You can't hit when you're standing" - else + else: hand["hand"].append(self.drawCard(channel)) hand["hit"] = True @@ -468,7 +468,7 @@ class Blackjack(): # Player enters the game and draws a hand async def playerDrawHand(self, ctx, bet : int): try: - ctx.defer() + await ctx.defer() except: self.bot.log("Defer failed") channel = str(ctx.channel_id)