v3.5.5 hotfix (instant push)

This commit is contained in:
DJj123dj
2024-05-12 11:14:02 +02:00
parent 01c1f3150e
commit 38afb9c2a6
2 changed files with 4 additions and 12 deletions
+3 -11
View File
@@ -49,18 +49,10 @@ module.exports = () => {
const currentTicketOptions = configParser.getTicketById(customId) const currentTicketOptions = configParser.getTicketById(customId)
if (currentTicketOptions == false) return interaction.reply({embeds:[bot.errorLog.serverError(l.errors.anotherOption)]}) if (currentTicketOptions == false) return interaction.reply({embeds:[bot.errorLog.serverError(l.errors.anotherOption)]})
if (interaction.isButton()){ if (interaction.isButton() || interaction.isStringSelectMenu() || interaction.isChatInputCommand()){
try { try{
await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpen}) await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpen})
} catch{} }catch{}
}else if (interaction.isChatInputCommand()){
try {
await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpen})
} catch{}
}else if (interaction.isStringSelectMenu()){
try {
await interaction.deferUpdate()
} catch{}
} }
const currentUserTicketAmount = storage.get("amountOfUserTickets",interaction.member.id) const currentUserTicketAmount = storage.get("amountOfUserTickets",interaction.member.id)
+1 -1
View File
@@ -14,7 +14,7 @@
"dependencies": { "dependencies": {
"axios": "^1.6.2", "axios": "^1.6.2",
"chalk": "^5.0.1", "chalk": "^5.0.1",
"discord.js": "^14.14.1" "discord.js": "^14.15.1"
}, },
"repository": { "repository": {
"type": "git", "type": "git",