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)