mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 09:23:07 +02:00
feat: add target ID
This commit is contained in:
parent
1ecb6f5d32
commit
26ab229c97
@ -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,
|
||||
},
|
||||
]),
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user