logging: nickname removal special case guh

This commit is contained in:
Cynthia Foxwell 2025-07-22 17:13:58 -06:00
parent 34135ec526
commit 4c14f96acd
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -433,6 +433,13 @@ events.add("guildAuditLogEntryCreate", "logging", async function (entry) {
}
}
}
if (before.nick != null && after.nick == null) {
fields.push({
name: "Nickname",
value: formatChange(before.nick, after.nick),
inline: true,
});
}
let verb = "updated";
if (after.bypasses_verification) {