fix (timer): Check for 'notify_hook' on notify.
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user