Skip to content

Commit

Permalink
feat: add ticket/channel ID on closed tickets list (#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 <git@eartharoid.me>
  • Loading branch information
M4rlus and eartharoid committed Oct 27, 2023
1 parent 6b8cd9e commit cab1b3b
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 cab1b3b

Please sign in to comment.