From 8fa2e38859f7dad2b2b6b59b41a213f9ca073913 Mon Sep 17 00:00:00 2001 From: Lemon Rose Date: Sun, 15 Oct 2023 19:33:26 +0530 Subject: [PATCH] [BattleRoyale] fixes --- battleroyale/game.py | 1 - battleroyale/views.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/battleroyale/game.py b/battleroyale/game.py index 72eaf3e0..c15552bb 100644 --- a/battleroyale/game.py +++ b/battleroyale/game.py @@ -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( diff --git a/battleroyale/views.py b/battleroyale/views.py index 10d895dc..3b38fd0b 100644 --- a/battleroyale/views.py +++ b/battleroyale/views.py @@ -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 @@ -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]}..."