feat: transcript button on referenced ticket embed

This commit is contained in:
Isaac 2025-02-12 21:14:10 +00:00
parent fb0a23cef0
commit 04ada3c07b
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -630,7 +630,23 @@ module.exports = class TicketManager {
value: await quick('crypto', worker => worker.decrypt(ticket.topic)), value: await quick('crypto', worker => worker.decrypt(ticket.topic)),
}); });
} }
await channel.send({ embeds: [embed] }); await channel.send({
components: [
new ActionRowBuilder()
.addComponents(
new ButtonBuilder()
.setCustomId(JSON.stringify({
action: 'transcript',
ticket: referencesTicketId,
}))
.setStyle(ButtonStyle.Primary)
.setEmoji(getMessage('buttons.transcript.emoji'))
.setLabel(getMessage('buttons.transcript.text')),
),
],
embeds: [embed],
});
} }
} }