mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-01-11 10:26:27 +02:00
feat: add target ID
This commit is contained in:
parent
1ecb6f5d32
commit
26ab229c97
@ -104,7 +104,7 @@ async function logAdminEvent(client, {
|
|||||||
.addFields([
|
.addFields([
|
||||||
{
|
{
|
||||||
name: getMessage(`log.admin.title.target.${target.type}`),
|
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([
|
.addFields([
|
||||||
{
|
{
|
||||||
name: getMessage('log.ticket.ticket'),
|
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