Skip to content

Commit

Permalink
v3.5.5 hotfix (instant push)
Browse files Browse the repository at this point in the history
  • Loading branch information
DJj123dj committed May 12, 2024
1 parent 01c1f31 commit 38afb9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions core/ticketActions/ticketOpener.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 38afb9c

Please sign in to comment.