feat: add target ID

This commit is contained in:
Isaac 2022-10-29 00:54:38 +01:00
parent 1ecb6f5d32
commit 26ab229c97
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -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,
},
]),
];