diff --git a/commands/reopen.js b/commands/reopen.js index 09d4678..ce63a1e 100644 --- a/commands/reopen.js +++ b/commands/reopen.js @@ -39,7 +39,7 @@ module.exports = () => { if (hiddendata.length < 1) return interaction.editReply({embeds:[bot.errorLog.notInATicket]}) const ticketId = hiddendata.find(d => d.key == "type").value - if (hiddendata.data.find(h => h.key == "pendingdelete")) return interaction.editReply({embeds:[bot.errorLog.warning("Warning!","You can't re-open a ticket while it's being deleted!")]}) + if (hiddendata.find(h => h.key == "pendingdelete")) return interaction.editReply({embeds:[bot.errorLog.warning("Warning!","You can't re-open a ticket while it's being deleted!")]}) await interaction.editReply({embeds:[bot.embeds.commands.reopenEmbed(interaction.user)],components:[bot.buttons.close.openRowNormal]}) @@ -48,4 +48,4 @@ module.exports = () => { log("command","someone used the 'reopen' command",[{key:"user",value:interaction.user.tag}]) APIEvents.onCommand("reopen",true,interaction.user,interaction.channel,interaction.guild,new Date()) }) -} \ No newline at end of file +}