Fix image conversion and member update avatar checking, nsfw detection is still broken
diff --git a/src/events/guildMemberUpdate.ts b/src/events/guildMemberUpdate.ts
index fe11ee1..d1bbd9b 100644
--- a/src/events/guildMemberUpdate.ts
+++ b/src/events/guildMemberUpdate.ts
@@ -87,6 +87,7 @@
await log(data);
}
}
+ if (before.displayAvatarURL !== after.displayAvatarURL) await doMemberChecks(after);
const auditLog = (await getAuditLog(after.guild, AuditLogEvent.MemberUpdate)).filter(
(entry: GuildAuditLogsEntry) => (entry.target as GuildMember)!.id === after.id
)[0];
@@ -125,7 +126,6 @@
};
await log(data);
}
- if (before.displayAvatarURL !== after.displayAvatarURL) await doMemberChecks(after);
if (
(before.communicationDisabledUntilTimestamp ?? 0) < Date.now() &&
new Date(after.communicationDisabledUntil ?? 0).getTime() > Date.now()