fix (timer): Check for 'notify_hook' on notify.

This commit is contained in:
2023-08-28 23:45:47 +03:00
parent 598ba443d5
commit 5bf4f6efde

View File

@@ -396,7 +396,7 @@ class Timer:
tasks.append(member.edit(voice_channel=None)) tasks.append(member.edit(voice_channel=None))
notify_hook = await self.get_notification_webhook() notify_hook = await self.get_notification_webhook()
if needs_kick: if needs_kick and notify_hook:
t = self.bot.translator.t t = self.bot.translator.t
kick_message = t(_np( kick_message = t(_np(
'timer|kicked_message', 'timer|kicked_message',