Open Ticket v3.5.9

**Improved:**
- Updated discord.js to `v14.17.2`

**Fixed:**
- discord.js PermissionOverwrites => `Supplied parameter is not a User nor a Role`
- message `"ephemeral"` is deprecated warning
- A few config checker typos
This commit is contained in:
Jasper
2025-01-04 09:52:57 +01:00
committed by GitHub
44 changed files with 56 additions and 56 deletions
+1 -1
View File
@@ -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 | ❌ | |
+2 -2
View File
@@ -13,7 +13,7 @@ Plugins will be 100x better and advanced than the current system!
<img src="https://apis.dj-dj.be/cdn/openticket/logo.png" alt="Open Ticket" width="600px">
[![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!
</a>
## 📎 Links
current version: _v3.5.8_
current version: _v3.5.9_
</br>Changelog: [click here](https://otgithub.dj-dj.be/releases)
</br>Documentation: [click here](https://otdocs.dj-dj.be/)
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -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
}
+1 -1
View File
@@ -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",
+2 -2
View File
@@ -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:
+4 -4
View File
@@ -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:[]
+7 -7
View File
@@ -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{}
}
@@ -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]
})
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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": "قيمة غير صالحة!",
+1 -1
View File
@@ -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":"Грешни Аргументи!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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 !",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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": "매개 변수가 누락되었습니다!",
+1 -1
View File
@@ -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": "매개 변수가 누락되었습니다!",
+1 -1
View File
@@ -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":"ئه‌وه‌ی هه‌ڵتبژاردوه‌ نادروسته‌",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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":"آرگومان‌های گم شده!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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":"Неверные аргументы!",
+1 -1
View File
@@ -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":"缺少参数!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -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":"อาร์กิวเมนต์ไม่ถูกต้อง",
+1 -1
View File
@@ -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":"缺少參數!",
+1 -1
View File
@@ -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!",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"_CREDITS":"ander",
"_INFO":"Цей файл є перекладом для open ticket 3.5.8",
"_INFO":"Цей файл є перекладом для open ticket 3.5.9",
"errors":{
"missingArgsTitle":"Невірні аргументи!",
+1 -1
View File
@@ -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ệ!",
+2 -2
View File
@@ -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": {
@@ -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",