From 5763659900d7853e0beb565f9180078d5cb8fa27 Mon Sep 17 00:00:00 2001 From: DJj123dj <80536295+DJj123dj@users.noreply.github.com> Date: Wed, 6 May 2026 20:45:10 +0200 Subject: [PATCH] Minor Bugfixes --- languages/custom.json | 2 +- languages/english.json | 2 +- src/core/main.ts | 1 + src/core/mappings/fuse.ts | 2 ++ src/index.ts | 2 +- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/languages/custom.json b/languages/custom.json index bf840f6..1f9aad5 100644 --- a/languages/custom.json +++ b/languages/custom.json @@ -174,7 +174,7 @@ "helpExplanation":"`` => required parameter\n`[name]` => optional parameter", "statsReset":"The bot statistics have been reset.", - "statsError":"nable to retrieve ticket statistics.\n{0} is not a valid ticket.", + "statsError":"Unable to retrieve ticket statistics.\n{0} is not a valid ticket.", "blacklistAdd":"{0} has been blacklisted.", "blacklistRemove":"{0} has been released.", "blacklistGetSuccess":"{0} is blacklisted!", diff --git a/languages/english.json b/languages/english.json index 84ffda2..b8c073e 100644 --- a/languages/english.json +++ b/languages/english.json @@ -174,7 +174,7 @@ "helpExplanation":"`` => required parameter\n`[name]` => optional parameter", "statsReset":"The bot statistics have been reset.", - "statsError":"nable to retrieve ticket statistics.\n{0} is not a valid ticket.", + "statsError":"Unable to retrieve ticket statistics.\n{0} is not a valid ticket.", "blacklistAdd":"{0} has been blacklisted.", "blacklistRemove":"{0} has been released.", "blacklistGetSuccess":"{0} is blacklisted!", diff --git a/src/core/main.ts b/src/core/main.ts index c7161bf..852ecda 100644 --- a/src/core/main.ts +++ b/src/core/main.ts @@ -111,6 +111,7 @@ export class ODOpenTicketMain extends api.ODMain { //OPEN TICKET this.fuses = new api.ODFuseManager({ + priorityLoading:true, questionLoading:true, optionLoading:true, panelLoading:true, diff --git a/src/core/mappings/fuse.ts b/src/core/mappings/fuse.ts index 180f5af..1b9255a 100644 --- a/src/core/mappings/fuse.ts +++ b/src/core/mappings/fuse.ts @@ -4,6 +4,8 @@ import * as api from "@open-discord-bots/framework/api" export interface ODOpenTicketFuseList { + /**Load the default Open Ticket ticket priority levels. */ + priorityLoading:boolean, /**Load the default Open Ticket questions (from `config/questions.json`) */ questionLoading:boolean, /**Load the default Open Ticket options (from `config/options.json`) */ diff --git a/src/index.ts b/src/index.ts index 43f6c1b..bc2d6c2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -415,7 +415,7 @@ const main = async () => { //load priority levels opendiscord.log("Loading prioritiy levels...","system") - if (opendiscord.sharedFuses.getFuse("priorityLoading")){ + if (opendiscord.fuses.getFuse("priorityLoading")){ await (await import("./data/openticket/priorityLoader.js")).loadAllPriorityLevels() } await opendiscord.events.get("onPriorityLoad").emit([opendiscord.priorities])