fix: only send transcript button in log channel if archiving is enabled

This commit is contained in:
Isaac
2025-02-12 21:22:07 +00:00
parent 618f35f247
commit 54455c316e
2 changed files with 2 additions and 1 deletions

View File

@@ -187,7 +187,7 @@ async function logTicketEvent(client, {
return await channel.send({
components:
action === 'close' ? [
action === 'close' && target.archive ? [
new ActionRowBuilder()
.addComponents(
new ButtonBuilder()

View File

@@ -1261,6 +1261,7 @@ module.exports = class TicketManager {
logTicketEvent(this.client, {
action: 'close',
target: {
archive: ticket.guild.archive,
id: ticket.id,
name: `${ticket.category.name} **#${ticket.number}**`,
},