From e6a527633a4992a64cad2985a5b169003d300796 Mon Sep 17 00:00:00 2001 From: Marius <43551856+M4rlus@users.noreply.github.com> Date: Fri, 27 Oct 2023 21:14:48 +0200 Subject: [PATCH] added ticket channel id for closed tickets (#496) * added ticket channel id for closed tickets * Update tickets.js * Fix \` + "\`" + \` --------- Co-authored-by: Isaac --- src/commands/slash/tickets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/slash/tickets.js b/src/commands/slash/tickets.js index e39dd8c..d6af912 100644 --- a/src/commands/slash/tickets.js +++ b/src/commands/slash/tickets.js @@ -105,7 +105,7 @@ module.exports = class TicketsSlashCommand extends SlashCommand { name: getMessage('commands.slash.tickets.response.fields.closed.name'), value: closed.map(ticket => { const topic = ticket.topic ? `- \`${decrypt(ticket.topic).replace(/\n/g, ' ').slice(0, 30)}\`` : ''; - return `> ${ticket.category.name} #${ticket.number} ${topic}`; + return `> ${ticket.category.name} #${ticket.number} (\`${ticket.id}\`) ${topic}`; }).join('\n'), }); }