mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-16 03:55:26 +00:00
🐛 Fix AttributeError in player manager
This commit is contained in:
parent
9defc34147
commit
59e33eb468
@ -62,8 +62,11 @@ class PlayersManagesPlugin(Plugin):
|
||||
return
|
||||
buttons = []
|
||||
for player in players:
|
||||
nickname = "未知"
|
||||
player_info = await self.player_info_service.get(player)
|
||||
text = f"{player.player_id} {player_info.nickname}"
|
||||
if player_info:
|
||||
nickname = player_info.nickname
|
||||
text = f"{player.player_id} {nickname}"
|
||||
buttons.append(
|
||||
[
|
||||
InlineKeyboardButton(
|
||||
|
Loading…
Reference in New Issue
Block a user