From f2de7fc408b39c69cd9ef20d0145d11174820571 Mon Sep 17 00:00:00 2001 From: DJj123dj <80536295+DJj123dj@users.noreply.github.com> Date: Sat, 4 Jan 2025 09:35:48 +0100 Subject: [PATCH 1/4] Bugfix: discord.js PermissionOverwrites id invalid --- core/ticketActions/ticketOpener.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/ticketActions/ticketOpener.js b/core/ticketActions/ticketOpener.js index 8762f2d..d82f50b 100755 --- a/core/ticketActions/ticketOpener.js +++ b/core/ticketActions/ticketOpener.js @@ -79,7 +79,7 @@ module.exports = () => { //set @everyone no ticket access permissionsArray.push({ - id:interaction.guild.roles.everyone, + id:interaction.guild.roles.everyone.id, type:"role", allow:[], deny:[pfb.ViewChannel] @@ -87,7 +87,7 @@ module.exports = () => { //add the user that created the ticket permissionsArray.push({ - id:interaction.member.user, + id:interaction.member.id, type:"member", allow:[pfb.AddReactions,pfb.AttachFiles,pfb.EmbedLinks,pfb.SendMessages,pfb.ViewChannel,pfb.ReadMessageHistory] }) @@ -99,7 +99,7 @@ module.exports = () => { if (!adminrole) return permissionsArray.push({ - id:adminrole, + id:adminrole.id, type:"role", allow:[pfb.AddReactions,pfb.AttachFiles,pfb.EmbedLinks,pfb.SendMessages,pfb.ViewChannel,pfb.ReadMessageHistory] }) @@ -118,7 +118,7 @@ module.exports = () => { if (!adminrole) return permissionsArray.push({ - id:adminrole, + id:adminrole.id, type:"role", allow:[pfb.AddReactions,pfb.AttachFiles,pfb.EmbedLinks,pfb.SendMessages,pfb.ViewChannel,pfb.ReadMessageHistory] }) @@ -135,7 +135,7 @@ module.exports = () => { if (!adminrole) return permissionsArray.push({ - id:adminrole, + id:adminrole.id, type:"role", allow:[pfb.AddReactions,pfb.ViewChannel,pfb.ReadMessageHistory], deny:[pfb.SendMessages,pfb.AttachFiles,pfb.EmbedLinks] @@ -151,7 +151,7 @@ module.exports = () => { const userrole = guild.roles.cache.find(r => r.id == config.system.memberRole) if (userrole){ permissionsArray.push({ - id:userrole, + id:userrole.id, type:"role", deny:[pfb.ViewChannel] }) From a66d3aad2dfeda3cd73c7013062bf20ce1cec6e0 Mon Sep 17 00:00:00 2001 From: DJj123dj <80536295+DJj123dj@users.noreply.github.com> Date: Sat, 4 Jan 2025 09:36:42 +0100 Subject: [PATCH 2/4] Updated to v3.5.9 --- .github/SECURITY.md | 2 +- README.md | 4 ++-- config.json | 2 +- index.js | 2 +- language/arabic.json | 2 +- language/bulgarian.json | 2 +- language/custom.json | 2 +- language/czech.json | 2 +- language/danish.json | 2 +- language/dutch.json | 2 +- language/english.json | 2 +- language/estonian.json | 2 +- language/finnish.json | 2 +- language/french.json | 2 +- language/german.json | 2 +- language/greek.json | 2 +- language/hungarian.json | 2 +- language/indonesian.json | 2 +- language/italian.json | 2 +- language/japanese.json | 2 +- language/korean.json | 2 +- language/kurdish.json | 2 +- language/latvian.json | 2 +- language/norwegian.json | 2 +- language/persian.json | 2 +- language/polish.json | 2 +- language/portuguese.json | 2 +- language/romanian.json | 2 +- language/russian.json | 2 +- language/simplifiedchinese.json | 2 +- language/slovenian.json | 2 +- language/spanish.json | 2 +- language/swedish.json | 2 +- language/thai.json | 2 +- language/traditionalchinese.json | 2 +- language/turkish.json | 2 +- language/ukrainian.json | 2 +- language/vietnamese.json | 2 +- package.json | 2 +- 39 files changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/SECURITY.md b/.github/SECURITY.md index a19e042..a97a1aa 100644 --- a/.github/SECURITY.md +++ b/.github/SECURITY.md @@ -9,7 +9,7 @@ Below, you can find a list with the status of every open ticket version. This li | Version | Supported | Until | |-----------|-----------|-----------------------------| -| 3.5.8 | ✅ | | +| 3.5.9 | ✅ | | | 3.5.7 | ✅ | September 2024 | | 3.5.6 | 🟧 | September 2024 | | < 3.5.6 | ❌ | | diff --git a/README.md b/README.md index a630546..9d514d8 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Plugins will be 100x better and advanced than the current system! Open Ticket -[![discord](https://img.shields.io/badge/discord-join%20our%20server-5865F2.svg?style=flat-square&logo=discord)](https://discord.com/invite/26vT9wt3n3) [![version](https://img.shields.io/badge/version-3.5.8-brightgreen.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/releases/tag/v3.5.8) [![discord.js](https://img.shields.io/badge/discord.js-v14-CB3837.svg?style=flat-square&logo=npm)]() [![license](https://img.shields.io/badge/license-GPL%203.0-important.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/blob/main/LICENSE) [![stars](https://img.shields.io/github/stars/djj123dj/open-ticket?color=yellow&label=stars&logo=github&style=flat-square)](https://otdocs.dj-dj.be) +[![discord](https://img.shields.io/badge/discord-join%20our%20server-5865F2.svg?style=flat-square&logo=discord)](https://discord.com/invite/26vT9wt3n3) [![version](https://img.shields.io/badge/version-3.5.9-brightgreen.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/releases/tag/v3.5.9) [![discord.js](https://img.shields.io/badge/discord.js-v14-CB3837.svg?style=flat-square&logo=npm)]() [![license](https://img.shields.io/badge/license-GPL%203.0-important.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/blob/main/LICENSE) [![stars](https://img.shields.io/github/stars/djj123dj/open-ticket?color=yellow&label=stars&logo=github&style=flat-square)](https://otdocs.dj-dj.be) ### Open Ticket Open Ticket is the most customisable discord ticket bot that you will ever find on Github! There are more than 150+ options to configure! This includes html transcripts, claiming, unlimited tickets, custom embeds & more! Did you know that even the transcripts are highly customisable? Don't wait and check it out! If you're having trouble setting the bot up, feel free to join our support server and we will help you further! @@ -108,7 +108,7 @@ Please help us grow by giving a star! It would help us a lot! ## 📎 Links -current version: _v3.5.8_ +current version: _v3.5.9_
Changelog: [click here](https://otgithub.dj-dj.be/releases)
Documentation: [click here](https://otdocs.dj-dj.be/) diff --git a/config.json b/config.json index ead5a4c..d3f30ef 100644 --- a/config.json +++ b/config.json @@ -110,7 +110,7 @@ "dropdown":false, "enableFooter":false, - "footer":"Open Ticket v3.5.8 - I'm a footer!", + "footer":"Open Ticket v3.5.9 - I'm a footer!", "enableFooterImage":false, "footerImage":"https://www.example.com/catmemes/cat.png", diff --git a/index.js b/index.js index 92bd844..7f4edd7 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,7 @@ INFORMATION: ============ - Open Ticket v3.5.8 - © DJdj Development + Open Ticket v3.5.9 - © DJdj Development discord: https://discord.dj-dj.be website: https://www.dj-dj.be diff --git a/language/arabic.json b/language/arabic.json index 082dd6e..6e75b67 100644 --- a/language/arabic.json +++ b/language/arabic.json @@ -1,6 +1,6 @@ { "_CREDITS":"deqressing", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors": { "missingArgsTitle": "قيمة غير صالحة!", diff --git a/language/bulgarian.json b/language/bulgarian.json index 4e18255..12c4460 100644 --- a/language/bulgarian.json +++ b/language/bulgarian.json @@ -1,6 +1,6 @@ { "_CREDITS":"Stragar", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Грешни Аргументи!", diff --git a/language/custom.json b/language/custom.json index c7ae715..2b51c90 100644 --- a/language/custom.json +++ b/language/custom.json @@ -1,6 +1,6 @@ { "_CREDITS":"DJdj Development", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Invalid Arguments!", diff --git a/language/czech.json b/language/czech.json index 848cf47..f6b6717 100644 --- a/language/czech.json +++ b/language/czech.json @@ -1,6 +1,6 @@ { "_CREDITS":"spyeye_", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Neplatný Argument!", diff --git a/language/danish.json b/language/danish.json index dc70bf3..6b65cb4 100644 --- a/language/danish.json +++ b/language/danish.json @@ -1,6 +1,6 @@ { "_CREDITS":".the_gamer", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors": { "missingArgsTitle": "Ugyldigt Argument!", diff --git a/language/dutch.json b/language/dutch.json index 4ba5b58..1767ba4 100644 --- a/language/dutch.json +++ b/language/dutch.json @@ -1,6 +1,6 @@ { "_CREDITS":"djj123dj", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Onjuiste parameters!", diff --git a/language/english.json b/language/english.json index 02bab43..2f9b0bb 100644 --- a/language/english.json +++ b/language/english.json @@ -1,6 +1,6 @@ { "_CREDITS":"DJdj Development", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Invalid Arguments!", diff --git a/language/estonian.json b/language/estonian.json index 9bb695b..f1acfda 100644 --- a/language/estonian.json +++ b/language/estonian.json @@ -1,6 +1,6 @@ { "_CREDITS":"iamnotmega", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Puuduvad argumendid!", diff --git a/language/finnish.json b/language/finnish.json index fe5931f..305d7cb 100644 --- a/language/finnish.json +++ b/language/finnish.json @@ -1,6 +1,6 @@ { "_CREDITS":"iamnotmega", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Virheelliset argumentit!", diff --git a/language/french.json b/language/french.json index 3bf630a..f315df9 100644 --- a/language/french.json +++ b/language/french.json @@ -1,6 +1,6 @@ { "_CREDITS":"tostam", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Arguments invalides !", diff --git a/language/german.json b/language/german.json index f8fbd6e..6e40493 100644 --- a/language/german.json +++ b/language/german.json @@ -1,6 +1,6 @@ { "_CREDITS":"david.3", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Ungültiges Argument!", diff --git a/language/greek.json b/language/greek.json index c7c87e3..2bde8cf 100644 --- a/language/greek.json +++ b/language/greek.json @@ -1,6 +1,6 @@ { "_CREDITS":"ꙅoᴎɒᎸɘƚꙅ#3744", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Invalid Arguments!", diff --git a/language/hungarian.json b/language/hungarian.json index 143fe02..8ba58dd 100644 --- a/language/hungarian.json +++ b/language/hungarian.json @@ -1,6 +1,6 @@ { "_CREDITS":"kornel0706", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Hibás paraméter!", diff --git a/language/indonesian.json b/language/indonesian.json index 7969a85..6a95b35 100644 --- a/language/indonesian.json +++ b/language/indonesian.json @@ -1,6 +1,6 @@ { "_CREDITS":"erxg", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Argumen tidak valid!", diff --git a/language/italian.json b/language/italian.json index ce12573..7bd020b 100644 --- a/language/italian.json +++ b/language/italian.json @@ -1,6 +1,6 @@ { "_CREDITS":"maurizio26", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Argomenti non validi!", diff --git a/language/japanese.json b/language/japanese.json index bf7e5cb..65388bc 100644 --- a/language/japanese.json +++ b/language/japanese.json @@ -1,6 +1,6 @@ { "_CREDITS": "iamnotmega", - "_INFO": "This file is a translation for open ticket 3.5.8", + "_INFO": "This file is a translation for open ticket 3.5.9", "errors": { "missingArgsTitle": "매개 변수가 누락되었습니다!", diff --git a/language/korean.json b/language/korean.json index bf7e5cb..65388bc 100644 --- a/language/korean.json +++ b/language/korean.json @@ -1,6 +1,6 @@ { "_CREDITS": "iamnotmega", - "_INFO": "This file is a translation for open ticket 3.5.8", + "_INFO": "This file is a translation for open ticket 3.5.9", "errors": { "missingArgsTitle": "매개 변수가 누락되었습니다!", diff --git a/language/kurdish.json b/language/kurdish.json index ec4f850..1e99827 100644 --- a/language/kurdish.json +++ b/language/kurdish.json @@ -1,6 +1,6 @@ { "_CREDITS":"raze.hama", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"ئه‌وه‌ی هه‌ڵتبژاردوه‌ نادروسته‌", diff --git a/language/latvian.json b/language/latvian.json index 9803efa..641bb80 100644 --- a/language/latvian.json +++ b/language/latvian.json @@ -1,6 +1,6 @@ { "_CREDITS":"Ronalds1398", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Nepareizi argumenti!", diff --git a/language/norwegian.json b/language/norwegian.json index 1fcf1c1..fa9d0f2 100644 --- a/language/norwegian.json +++ b/language/norwegian.json @@ -1,6 +1,6 @@ { "_CREDITS":"noonenook", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Ugyldige argumenter!", diff --git a/language/persian.json b/language/persian.json index f602c56..438adde 100644 --- a/language/persian.json +++ b/language/persian.json @@ -1,6 +1,6 @@ { "_CREDITS":"sasanwm", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"آرگومان‌های گم شده!", diff --git a/language/polish.json b/language/polish.json index ab35ebd..c8db369 100644 --- a/language/polish.json +++ b/language/polish.json @@ -1,6 +1,6 @@ { "_CREDITS":"mkevas", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Nieprawidłowe argumenty!", diff --git a/language/portuguese.json b/language/portuguese.json index ca030ad..51caa55 100644 --- a/language/portuguese.json +++ b/language/portuguese.json @@ -1,6 +1,6 @@ { "_CREDITS":"quiradon", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Argumentos inválidos!", diff --git a/language/romanian.json b/language/romanian.json index 3af9f4f..a2cdcab 100644 --- a/language/romanian.json +++ b/language/romanian.json @@ -1,6 +1,6 @@ { "_CREDITS":"Sanke#6086", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Argumente Invalide", diff --git a/language/russian.json b/language/russian.json index 5c37bcc..b77a87c 100644 --- a/language/russian.json +++ b/language/russian.json @@ -1,6 +1,6 @@ { "_CREDITS":"apexo & ander", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Неверные аргументы!", diff --git a/language/simplifiedchinese.json b/language/simplifiedchinese.json index a40d474..3abbdd1 100644 --- a/language/simplifiedchinese.json +++ b/language/simplifiedchinese.json @@ -1,6 +1,6 @@ { "_CREDITS":"iamnotmega", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"缺少参数!", diff --git a/language/slovenian.json b/language/slovenian.json index 3ed194b..f45ec24 100644 --- a/language/slovenian.json +++ b/language/slovenian.json @@ -1,6 +1,6 @@ { "_CREDITS":"n1kkec", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Napačen argument!", diff --git a/language/spanish.json b/language/spanish.json index 39f996b..7bc2857 100644 --- a/language/spanish.json +++ b/language/spanish.json @@ -1,6 +1,6 @@ { "_CREDITS":"redactado & josuens", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"¡Argumentos inválidos!", diff --git a/language/swedish.json b/language/swedish.json index c09ec2f..61d195f 100644 --- a/language/swedish.json +++ b/language/swedish.json @@ -1,6 +1,6 @@ { "_CREDITS":"iamnotmega", - "_INFO":"Denna fil är en översättning för öppen biljett 3.5.8", + "_INFO":"Denna fil är en översättning för öppen biljett 3.5.9", "errors":{ "missingArgsTitle":"Ogiltiga argument!", diff --git a/language/thai.json b/language/thai.json index 308663c..a441164 100644 --- a/language/thai.json +++ b/language/thai.json @@ -1,6 +1,6 @@ { "_CREDITS":"modshd", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"อาร์กิวเมนต์ไม่ถูกต้อง", diff --git a/language/traditionalchinese.json b/language/traditionalchinese.json index ae5f2f1..d13772a 100644 --- a/language/traditionalchinese.json +++ b/language/traditionalchinese.json @@ -1,6 +1,6 @@ { "_CREDITS":"iamnotmega", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"缺少參數!", diff --git a/language/turkish.json b/language/turkish.json index 77318af..ffc0b4b 100644 --- a/language/turkish.json +++ b/language/turkish.json @@ -1,6 +1,6 @@ { "_CREDITS":"0x15d3", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Geçersiz argümanlar!", diff --git a/language/ukrainian.json b/language/ukrainian.json index 805813b..9e2e0a9 100644 --- a/language/ukrainian.json +++ b/language/ukrainian.json @@ -1,6 +1,6 @@ { "_CREDITS":"ander", - "_INFO":"Цей файл є перекладом для open ticket 3.5.8", + "_INFO":"Цей файл є перекладом для open ticket 3.5.9", "errors":{ "missingArgsTitle":"Невірні аргументи!", diff --git a/language/vietnamese.json b/language/vietnamese.json index 610d6c5..5b24067 100644 --- a/language/vietnamese.json +++ b/language/vietnamese.json @@ -1,6 +1,6 @@ { "_CREDITS":"iamnotmega", - "_INFO":"This file is a translation for open ticket 3.5.8", + "_INFO":"This file is a translation for open ticket 3.5.9", "errors":{ "missingArgsTitle":"Đối số không hợp lệ!", diff --git a/package.json b/package.json index 9653f3c..383b661 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "open-ticket", "author": "DJdj Development", - "version": "3.5.8", + "version": "3.5.9", "description": "The most advanced open-source discord ticket bot with HTML transcripts and plugins! It uses discord.js v14 & no database required!", "main": "index.js", "scripts": { From 67465bfdf49f733559dcbc5bec56d26a6cf7f8ba Mon Sep 17 00:00:00 2001 From: DJj123dj <80536295+DJj123dj@users.noreply.github.com> Date: Sat, 4 Jan 2025 09:49:52 +0100 Subject: [PATCH 3/4] Bugfix: ephemeral in message reply is deprecated --- commands/claim.js | 2 +- commands/unclaim.js | 2 +- core/ticketActions/ticketOpener.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/claim.js b/commands/claim.js index 72fad2a..79531f2 100644 --- a/commands/claim.js +++ b/commands/claim.js @@ -72,7 +72,7 @@ module.exports = () => { if (!permsChecker.ticket(interaction.user.id,interaction.guild.id,ticketId)){ permsChecker.sendUserNoPerms(interaction.user) - return interaction.reply({content:":x: "+l.errors.noPermsTitle,ephemeral:true}) + return interaction.reply({content:":x: "+l.errors.noPermsTitle,flags:["Ephemeral"]}) } await interaction.deferReply() diff --git a/commands/unclaim.js b/commands/unclaim.js index c37e1a6..41642a8 100644 --- a/commands/unclaim.js +++ b/commands/unclaim.js @@ -79,7 +79,7 @@ module.exports = () => { if (!permsChecker.ticket(interaction.user.id,interaction.guild.id,ticketId)){ permsChecker.sendUserNoPerms(interaction.user) - interaction.reply({content:":x: "+l.errors.noPermsTitle,ephemeral:true}) + interaction.reply({content:":x: "+l.errors.noPermsTitle,flags:["Ephemeral"]}) return } diff --git a/core/ticketActions/ticketOpener.js b/core/ticketActions/ticketOpener.js index d82f50b..5d3f0dc 100755 --- a/core/ticketActions/ticketOpener.js +++ b/core/ticketActions/ticketOpener.js @@ -51,7 +51,7 @@ module.exports = () => { if (interaction.isButton() || interaction.isStringSelectMenu() || interaction.isChatInputCommand()){ try{ - await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpen}) + await interaction.deferReply({flags:config.system.answerInEphemeralOnOpen ? ["Ephemeral"] : undefined}) }catch{} } From e9d20c0a144467cda42ff7871a66122a0f4315d1 Mon Sep 17 00:00:00 2001 From: DJj123dj <80536295+DJj123dj@users.noreply.github.com> Date: Sat, 4 Jan 2025 09:50:17 +0100 Subject: [PATCH 4/4] Improvements + Updated discord.js to v14.17.2 --- core/checker.js | 4 ++-- core/ticketActions/ticketCloser.js | 8 ++++---- package.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/checker.js b/core/checker.js index 543f853..27f35b5 100644 --- a/core/checker.js +++ b/core/checker.js @@ -415,7 +415,7 @@ exports.checker = async () => { } }) - checkHexColor(config.color,"main_color") + checkHexColor(config.color,"color") checkDiscord("serverid",config.serverId,"serverId") if (!require("./api/api.json").disable.checkerjs.token && !config.token.fromENV) checkToken(config.token.value) @@ -462,7 +462,7 @@ exports.checker = async () => { "vietnamese" ] if (!languageList.some((l) => config.languageFile.startsWith(l))){ - createError("'languageFile' | invalid language, more info in the wiki") + createError("'languageFile' | invalid language, more info in the documentation") } //status: diff --git a/core/ticketActions/ticketCloser.js b/core/ticketActions/ticketCloser.js index 16d06e5..46b1679 100755 --- a/core/ticketActions/ticketCloser.js +++ b/core/ticketActions/ticketCloser.js @@ -116,14 +116,14 @@ exports.closeManager = async (member,channel,prefix,mode,reason,nomessage) => { const pfb = discord.PermissionFlagsBits if (!isDatabaseError) permissionArray.push({ - id:ticketOpener, + id:ticketOpener.id, type:"member", allow:[pfb.ViewChannel], deny:[pfb.AddReactions,pfb.AttachFiles,pfb.EmbedLinks,pfb.SendMessages] }) permissionArray.push({ - id:guild.roles.everyone, + id:guild.roles.everyone.id, type:"role", deny:[pfb.AddReactions,pfb.AttachFiles,pfb.EmbedLinks,pfb.SendMessages,pfb.ViewChannel] }) @@ -135,7 +135,7 @@ exports.closeManager = async (member,channel,prefix,mode,reason,nomessage) => { if (!adminrole) return permissionArray.push({ - id:adminrole, + id:adminrole.id, type:"role", allow:[pfb.AddReactions,pfb.AttachFiles,pfb.EmbedLinks,pfb.SendMessages,pfb.ViewChannel], deny:[] @@ -163,7 +163,7 @@ exports.closeManager = async (member,channel,prefix,mode,reason,nomessage) => { if (!adminrole) return permissionArray.push({ - id:adminrole, + id:adminrole.id, type:"role", allow:[pfb.AddReactions,pfb.ViewChannel,pfb.AttachFiles,pfb.EmbedLinks,pfb.SendMessages], deny:[] diff --git a/package.json b/package.json index 383b661..b46f383 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "dependencies": { "axios": "^1.6.2", "chalk": "^5.0.1", - "discord.js": "^14.15.3" + "discord.js": "^14.17.2" }, "repository": { "type": "git",