diff --git a/core/ticketActions/ticketOpener.js b/core/ticketActions/ticketOpener.js index 2dbb48c..8fd7aa6 100755 --- a/core/ticketActions/ticketOpener.js +++ b/core/ticketActions/ticketOpener.js @@ -49,18 +49,10 @@ module.exports = () => { const currentTicketOptions = configParser.getTicketById(customId) if (currentTicketOptions == false) return interaction.reply({embeds:[bot.errorLog.serverError(l.errors.anotherOption)]}) - if (interaction.isButton()){ - try { - await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpen}) - } catch{} - }else if (interaction.isChatInputCommand()){ - try { + if (interaction.isButton() || interaction.isStringSelectMenu() || interaction.isChatInputCommand()){ + try{ await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpen}) - } catch{} - }else if (interaction.isStringSelectMenu()){ - try { - await interaction.deferUpdate() - } catch{} + }catch{} } const currentUserTicketAmount = storage.get("amountOfUserTickets",interaction.member.id) diff --git a/package.json b/package.json index 11105a2..72dee8c 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "dependencies": { "axios": "^1.6.2", "chalk": "^5.0.1", - "discord.js": "^14.14.1" + "discord.js": "^14.15.1" }, "repository": { "type": "git",