feat: transcript button in log channel

This commit is contained in:
Isaac
2024-11-09 00:08:39 +00:00
parent 412c65c0ff
commit 2a96858782
4 changed files with 48 additions and 3 deletions

View File

@@ -129,12 +129,12 @@ module.exports = class TranscriptSlashCommand extends SlashCommand {
/**
* @param {import("discord.js").ChatInputCommandInteraction} interaction
*/
async run(interaction) {
async run(interaction, ticketId) {
/** @type {import("client")} */
const client = this.client;
await interaction.deferReply({ ephemeral: true });
const ticketId = interaction.options.getString('ticket', true);
ticketId = ticketId || interaction.options.getString('ticket', true);
const ticket = await client.prisma.ticket.findUnique({
include: {
archivedChannels: true,