From 91c33e59a2e6cff34fc50c614bd397904aa4f390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berg=20J=C3=A1nos?= Date: Mon, 2 Jun 2025 13:38:56 +0200 Subject: [PATCH] * Added check and error reporting, if the logchannel is null. --- src/Events/Ready.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Events/Ready.php b/src/Events/Ready.php index a8a995a..908d973 100644 --- a/src/Events/Ready.php +++ b/src/Events/Ready.php @@ -40,7 +40,11 @@ class Ready implements Init ]); // send start notice to the log channel - $logChannel->sendMessage($message); + if ($logChannel !== null) { + $logChannel->sendMessage($message); + } else { + debug('LOG_CHANNEL is null ('. $logChannelID .')'); + } // regiter RemainderService handler $loop = $discord->getLoop();