From ce80bda8ccbbe2f2a46858a3b7328a933760f21c Mon Sep 17 00:00:00 2001 From: Navy Date: Fri, 11 Jun 2021 04:23:21 +0300 Subject: [PATCH] debugging --- structure/client/components/observers/GuildLogging.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/structure/client/components/observers/GuildLogging.js b/structure/client/components/observers/GuildLogging.js index 7844874..51fb317 100644 --- a/structure/client/components/observers/GuildLogging.js +++ b/structure/client/components/observers/GuildLogging.js @@ -94,6 +94,10 @@ class GuildLogger extends Observer { if (ignore && ignore.includes(message.channel.id)) return undefined; const hook = await message.guild.getWebhook('messageLog'); + if (!hook) { + this.client.logger.debug(`Missing messageLog hook in ${message.guild.name} (${message.guild.id})`); + return; + } const embed = { // author: {