v3.1.0 push 2

This commit is contained in:
DJj123dj
2022-12-27 17:35:01 +01:00
parent 86a5a1a2ca
commit ae002e168b
14 changed files with 239 additions and 24 deletions
+9 -3
View File
@@ -13,7 +13,9 @@ module.exports = () => {
client.on("interactionCreate",(interaction) => {
if (!interaction.isStringSelectMenu()) return
if (interaction.customId != "OTdropdownMenu") return
if (interaction.values.includes("OTChooseTicket")) interaction.deferUpdate()
if (interaction.values.includes("OTChooseTicket")){
interaction.deferUpdate()
}
})
@@ -50,11 +52,15 @@ module.exports = () => {
if (currentTicketOptions == false) return interaction.reply({embeds:[bot.errorLog.serverError(l.errors.anotherOption)]})
if (interaction.isButton()){
interaction.deferUpdate()
try {
interaction.deferUpdate()
} catch{}
}else if (interaction.isChatInputCommand()){
interaction.reply({embeds:[bot.errorLog.success(l.messages.createdTitle,l.messages.createdDescription)]})
}else if (interaction.isStringSelectMenu()){
await interaction.deferUpdate()
try {
interaction.deferUpdate()
} catch{}
}
if (storage.get("ticketStorage",interaction.member.id) == null || storage.get("ticketStorage",interaction.member.id) == "false"|| Number(storage.get("ticketStorage",interaction.member.id)) < config.system.max_allowed_tickets){