mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-05 09:41:27 +03:00
fix: only send transcript button if archiving is enabled
This commit is contained in:
@@ -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],
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user