mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-02-23 18:51:29 +02:00
feat: transcript button on referenced ticket embed
This commit is contained in:
parent
fb0a23cef0
commit
04ada3c07b
@ -630,7 +630,23 @@ module.exports = class TicketManager {
|
|||||||
value: await quick('crypto', worker => worker.decrypt(ticket.topic)),
|
value: await quick('crypto', worker => worker.decrypt(ticket.topic)),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
await channel.send({ embeds: [embed] });
|
await channel.send({
|
||||||
|
components: [
|
||||||
|
new ActionRowBuilder()
|
||||||
|
.addComponents(
|
||||||
|
new ButtonBuilder()
|
||||||
|
.setCustomId(JSON.stringify({
|
||||||
|
action: 'transcript',
|
||||||
|
ticket: referencesTicketId,
|
||||||
|
}))
|
||||||
|
.setStyle(ButtonStyle.Primary)
|
||||||
|
.setEmoji(getMessage('buttons.transcript.emoji'))
|
||||||
|
.setLabel(getMessage('buttons.transcript.text')),
|
||||||
|
|
||||||
|
),
|
||||||
|
],
|
||||||
|
embeds: [embed],
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user