mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 04:13:08 +02:00
feat: add ticket/channel ID on closed tickets list (#496)
* added ticket channel id for closed tickets * Update tickets.js * Fix \` + "\`" + \` --------- Co-authored-by: Isaac <git@eartharoid.me>
This commit is contained in:
parent
6b8cd9eb29
commit
cab1b3b6ca
@ -105,7 +105,7 @@ module.exports = class TicketsSlashCommand extends SlashCommand {
|
|||||||
name: getMessage('commands.slash.tickets.response.fields.closed.name'),
|
name: getMessage('commands.slash.tickets.response.fields.closed.name'),
|
||||||
value: closed.map(ticket => {
|
value: closed.map(ticket => {
|
||||||
const topic = ticket.topic ? `- \`${decrypt(ticket.topic).replace(/\n/g, ' ').slice(0, 30)}\`` : '';
|
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'),
|
}).join('\n'),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user