Skip to content

Commit

Permalink
[Audio] Fix trying to send notify message with no channel object (#6429)
Browse files Browse the repository at this point in the history
  • Loading branch information
aikaterna authored Aug 26, 2024
1 parent 3c49a77 commit 818420a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redbot/cogs/audio/core/events/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 818420a

Please sign in to comment.