v2.1.0 push 4

Added re-open mechanics
This commit is contained in:
DJj123dj
2022-06-09 20:43:41 +02:00
parent 2410743a46
commit a274576589
4 changed files with 144 additions and 3 deletions
+11 -2
View File
@@ -81,10 +81,19 @@ exports.closeTicket = async (interaction,prefix,mode) => {
.setLabel("Send Transcript File")
.setEmoji("📄")
)
.addComponents(
new discord.MessageButton()
.setCustomId("reopenTicket")
.setDisabled(false)
.setStyle("SUCCESS")
.setLabel("Re-Open Ticket")
.setEmoji("✔")
)
const embed = new discord.MessageEmbed()
.setColor(config.main_color)
.setTitle("Closed this ticket!")
.setDescription("Only admins can now talk in this ticket!\n\n*Click on the button below to delete this ticket*")
.setTitle(":lock: Closed this ticket! :lock:")
.setDescription("Only admins can talk in this ticket now!\n\n*Click on the button below to delete this ticket or to re-open it!*")
interaction.channel.send({embeds:[embed],components:[closeButtonRow]})
log("system","closed a ticket",[{key:"user",value:interaction.user.tag},{key:"ticket",value:interaction.channel.name}])