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: {