Skip to content

Commit

Permalink
[BattleRoyale] shift to name instead
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Oct 15, 2023
1 parent 8fa2e38 commit db9c169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions battleroyale/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async def _callback(
self: RemainingPlayerButton, interaction: discord.Interaction[Red]
) -> None:
remaining_player_str = humanize_list(
[m.display_name for m in sorted(self.view.remaining, key=lambda m: m.display_name)]
[m.name for m in sorted(self.view.remaining, key=lambda m: m.name)]
)
remaining_players_str = (
f"{remaining_player_str[:4000]}..."
Expand All @@ -132,7 +132,7 @@ async def _callback(
)
embed: discord.Embed = discord.Embed.from_dict(
{
"description": f"{remaining_players_str}.",
"description": f"**Remaining Players:**\n{remaining_players_str}.",
"color": int(self.view.color),
}
)
Expand Down

0 comments on commit db9c169

Please sign in to comment.