From f1db0f62fccf89ebe90081abbba7d4d7e8f908dc Mon Sep 17 00:00:00 2001 From: c0de Date: Sat, 10 Dec 2022 17:57:53 -0600 Subject: [PATCH] Await discord user interaction with name get --- game/end_game.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/end_game.py b/game/end_game.py index e47aeb3..f269dcf 100644 --- a/game/end_game.py +++ b/game/end_game.py @@ -40,10 +40,11 @@ class EndGameManager(BaseGameManager): if has_batter: player_id = batter_id[3:] + player_name = await self.discord.get_user(int(player_id).name) Guess.create( game_id=self.game.game_id, player_id=player_id, - player_name=self.discord.get_user(int(player_id).name), + player_name=player_name, guess=int(batter_guess), ).save()