From 0610d36bfde01ee994a4f62d6f26542d593f9866 Mon Sep 17 00:00:00 2001 From: Nat1anWasTaken Date: Fri, 14 Jun 2024 10:27:25 +0800 Subject: [PATCH] fix(lava/cogs/events.py): updated player.update_display method to include sending a new message if the player's channel is available, handling AttributeError exceptions. --- lava/cogs/events.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lava/cogs/events.py b/lava/cogs/events.py index 0f57ef73..2fd863d4 100644 --- a/lava/cogs/events.py +++ b/lava/cogs/events.py @@ -61,9 +61,11 @@ async def on_track_end(self, event: TrackEndEvent): self.bot.logger.info("Received track end event for guild %s", player.guild) try: - await player.update_display() + await player.update_display(new_message=await player.message.channel.send("...")) except ValueError: pass + except AttributeError: + pass async def on_queue_end(self, event: QueueEndEvent): player: LavaPlayer = event.player