v3.5.5 hotfix (instant push)

v3.5.5 hotfix (instant push)
This commit is contained in:
Jasper
2024-05-12 11:14:40 +02:00
committed by GitHub
2 changed files with 4 additions and 12 deletions
+3 -11
View File
@@ -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 {
if (interaction.isButton() || interaction.isStringSelectMenu() || interaction.isChatInputCommand()){
try{
await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpen})
} catch{}
}else if (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)
+1 -1
View File
@@ -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",