diff --git a/app/Notifications/Channels/DiscordChannel.php b/app/Notifications/Channels/DiscordChannel.php index 7032a0796..6c361f89e 100644 --- a/app/Notifications/Channels/DiscordChannel.php +++ b/app/Notifications/Channels/DiscordChannel.php @@ -14,6 +14,9 @@ class DiscordChannel { $message = $notification->toDiscord($notifiable); $webhookUrl = $notifiable->routeNotificationForDiscord(); + if (!$webhookUrl) { + return; + } dispatch(new SendMessageToDiscordJob($message, $webhookUrl)); } }