[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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -198,6 +198,8 @@ class AudioEvents(MixinMeta, metaclass=CompositeMetaClass):
if not guild: if not guild:
return return
notify_channel = guild.get_channel_or_thread(player.fetch("notify_channel")) notify_channel = guild.get_channel_or_thread(player.fetch("notify_channel"))
if not notify_channel:
return
has_perms = self._has_notify_perms(notify_channel) has_perms = self._has_notify_perms(notify_channel)
tries = 0 tries = 0
while not player._is_playing: while not player._is_playing: