diff --git a/src/modules/logging.js b/src/modules/logging.js index a7e1cb6..d31e93b 100644 --- a/src/modules/logging.js +++ b/src/modules/logging.js @@ -553,7 +553,10 @@ events.add("guildAuditLogEntryCreate", "logging", async function (entry) { break; } case AuditLogActions.THREAD_UPDATE: { - const parentChannel = entry.guild.channels.get(entry.target.parentID); + const parentChannel = + entry.target != null && entry.target.parentID != null + ? entry.guild.channels.get(entry.target.parentID) + : null; let tagDiff; if (after.applied_tags != null) {