logging: dont inline code no value

This commit is contained in:
Cynthia Foxwell 2025-07-22 18:57:11 -06:00
parent 6b2b0d8d4b
commit edbd039168
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -25,10 +25,10 @@ async function getLoggingChannel(guild) {
} }
function formatChange(before, after) { function formatChange(before, after) {
const beforeFormatted = before != null ? before : "<no value>"; const beforeFormatted = before != null ? `\`${before}\`` : "<no value>";
const afterFormatted = after != null ? after : "<no value>"; const afterFormatted = after != null ? `\`after\`` : "<no value>";
return `\`${beforeFormatted}\` -> \`${afterFormatted}\``; return `${beforeFormatted} -> ${afterFormatted}`;
} }
const WHITELISTED_EVENTS = new Set([ const WHITELISTED_EVENTS = new Set([