Skip to content

Commit

Permalink
added ticket channel id for closed tickets (#496)
Browse files Browse the repository at this point in the history
* added ticket channel id for closed tickets

* Update tickets.js

* Fix \` + "\`" + \`

---------

Co-authored-by: Isaac <[email protected]>
  • Loading branch information
M4rlus and eartharoid authored Oct 27, 2023
1 parent 6b8cd9e commit e6a5276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/slash/tickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
});
}
Expand Down

0 comments on commit e6a5276

Please sign in to comment.