From b74cc1f4a05afcd83d833b425bbe8fb042ffa269 Mon Sep 17 00:00:00 2001 From: shoucandanghehe Date: Sun, 4 Aug 2024 19:21:52 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20TETR.IO=20?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=20user=20=E6=97=B6=E5=87=BA=E7=8E=B0=20Unbou?= =?UTF-8?q?ndLocalError?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_tetris_stats/games/tetrio/api/player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nonebot_plugin_tetris_stats/games/tetrio/api/player.py b/nonebot_plugin_tetris_stats/games/tetrio/api/player.py index 63833e2..2b46a66 100644 --- a/nonebot_plugin_tetris_stats/games/tetrio/api/player.py +++ b/nonebot_plugin_tetris_stats/games/tetrio/api/player.py @@ -83,8 +83,8 @@ class Player: ID=user_info.data.id, name=user_info.data.username, ) - self.user_id = user_info.data.id - self.user_name = user_info.data.username + self.user_id = self.__user.ID + self.user_name = self.__user.name return self.__user async def get_info(self) -> UserInfoSuccess: