fix: only send transcript button if archiving is enabled

This commit is contained in:
Isaac
2025-02-12 21:18:49 +00:00
parent 13f3427ba7
commit 618f35f247

View File

@@ -631,7 +631,8 @@ module.exports = class TicketManager {
});
}
await channel.send({
components: [
components: category.guild.archive
? [
new ActionRowBuilder()
.addComponents(
new ButtonBuilder()
@@ -644,7 +645,8 @@ module.exports = class TicketManager {
.setLabel(getMessage('buttons.transcript.text')),
),
],
]
: [],
embeds: [embed],
});
}