From 818420a641a6bd71f9945e328f982101f8a0997d Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:53:30 -0700 Subject: [PATCH] [Audio] Fix trying to send notify message with no channel object (#6429) --- redbot/cogs/audio/core/events/cog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redbot/cogs/audio/core/events/cog.py b/redbot/cogs/audio/core/events/cog.py index 8d5acdd96de..55bfa4f84a6 100644 --- a/redbot/cogs/audio/core/events/cog.py +++ b/redbot/cogs/audio/core/events/cog.py @@ -198,6 +198,8 @@ async def on_red_audio_track_auto_play( if not guild: return notify_channel = guild.get_channel_or_thread(player.fetch("notify_channel")) + if not notify_channel: + return has_perms = self._has_notify_perms(notify_channel) tries = 0 while not player._is_playing: