Compare commits

...

2 commits

2 changed files with 5 additions and 1 deletions

View file

@ -68,6 +68,7 @@ const BSKY_DOMAINS = [
"bskyx.app", "bskyx.app",
"bsky.brid.gy", "bsky.brid.gy",
"deer.social", "deer.social",
"xbsky.app",
]; ];
const TW_DOMAINS = [ const TW_DOMAINS = [

View file

@ -553,7 +553,10 @@ events.add("guildAuditLogEntryCreate", "logging", async function (entry) {
break; break;
} }
case AuditLogActions.THREAD_UPDATE: { 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; let tagDiff;
if (after.applied_tags != null) { if (after.applied_tags != null) {