mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-02-23 02:41:21 +02:00
fix: only send transcript button in log channel if archiving is enabled
This commit is contained in:
parent
618f35f247
commit
54455c316e
@ -187,7 +187,7 @@ async function logTicketEvent(client, {
|
||||
|
||||
return await channel.send({
|
||||
components:
|
||||
action === 'close' ? [
|
||||
action === 'close' && target.archive ? [
|
||||
new ActionRowBuilder()
|
||||
.addComponents(
|
||||
new ButtonBuilder()
|
||||
|
@ -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}**`,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user