[Audio] Fix trying to send notify message with no channel object (#6429)

This commit is contained in:
aikaterna
2024-08-26 10:53:30 -07:00
committed by GitHub
parent 3c49a77e34
commit 818420a641

View File

@@ -198,6 +198,8 @@ class AudioEvents(MixinMeta, metaclass=CompositeMetaClass):
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: