From b7df8c7ef0ff7365857ba389455489258cb6182a Mon Sep 17 00:00:00 2001 From: Lemon Rose Date: Sun, 15 Oct 2023 19:30:16 +0530 Subject: [PATCH] [BattleRoyale] Change to mention + fix timeout --- battleroyale/game.py | 4 +++- battleroyale/views.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/battleroyale/game.py b/battleroyale/game.py index a2cec5c8..72eaf3e0 100644 --- a/battleroyale/game.py +++ b/battleroyale/game.py @@ -126,7 +126,9 @@ async def start( )[:2000] embed.set_image(url="attachment://image.png") _view = RemainingPlayerView( - remaining=self.remaining_players, color=await self.ctx.embed_color() + 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 33854756..c22f7b3e 100644 --- a/battleroyale/views.py +++ b/battleroyale/views.py @@ -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.mention)] + [m.mention for m in sorted(self.view.remaining, key=lambda m: m.mention)] ) remaining_players_str = ( f"{remaining_player_str[:2000]}..."