Minor Bugfixes
This commit is contained in:
@@ -111,6 +111,7 @@ export class ODOpenTicketMain extends api.ODMain {
|
||||
|
||||
//OPEN TICKET
|
||||
this.fuses = new api.ODFuseManager<api.ODOpenTicketFuseList>({
|
||||
priorityLoading:true,
|
||||
questionLoading:true,
|
||||
optionLoading:true,
|
||||
panelLoading:true,
|
||||
|
||||
@@ -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`) */
|
||||
|
||||
+1
-1
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user