From 26ab229c97aace7f37671f98a3209d5e97a81c29 Mon Sep 17 00:00:00 2001 From: Isaac Date: Sat, 29 Oct 2022 00:54:38 +0100 Subject: [PATCH] feat: add target ID --- src/lib/logging.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/logging.js b/src/lib/logging.js index 430331b..4bb5b2b 100644 --- a/src/lib/logging.js +++ b/src/lib/logging.js @@ -104,7 +104,7 @@ async function logAdminEvent(client, { .addFields([ { name: getMessage(`log.admin.title.target.${target.type}`), - value: target.name ?? target.id, + value: target.name ? `${target.name} (\`${target.id}\`)` : target.id, }, ]), ]; @@ -166,7 +166,7 @@ async function logTicketEvent(client, { .addFields([ { name: getMessage('log.ticket.ticket'), - value: target.name ?? target.id, + value: target.name ? `${target.name} (\`${target.id}\`)` : target.id, }, ]), ];