Skip to content

Commit

Permalink
[BattleRoyale] fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Oct 15, 2023
1 parent d9f0d55 commit 8fa2e38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion battleroyale/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ async def start(
_view = RemainingPlayerView(
remaining=self.remaining_players,
color=await self.ctx.embed_color(),
timeout=delay,
)
if EDIT_ORIGINAL_MESSAGE:
_message = await self.original_message.edit(
Expand Down
4 changes: 2 additions & 2 deletions battleroyale/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __init__(
remaining: List[discord.Member],
color: discord.Color,
emoji: Optional[str] = None,
timeout: float = 120,
timeout: float = 45,
) -> None:
super().__init__(timeout=timeout)
self.remaining: List[discord.Member] = remaining
Expand All @@ -123,7 +123,7 @@ async def _callback(
self: RemainingPlayerButton, interaction: discord.Interaction[Red]
) -> None:
remaining_player_str = humanize_list(
[m.mention for m in sorted(self.view.remaining, key=lambda m: m.mention)]
[m.display_name for m in sorted(self.view.remaining, key=lambda m: m.display_name)]
)
remaining_players_str = (
f"{remaining_player_str[:4000]}..."
Expand Down

0 comments on commit 8fa2e38

Please sign in to comment.