diff --git a/src/core/api/modules/checker.ts b/src/core/api/modules/checker.ts index 3e70b11..8b6f8d7 100644 --- a/src/core/api/modules/checker.ts +++ b/src/core/api/modules/checker.ts @@ -82,6 +82,10 @@ export class ODCheckerManager extends ODManager { messages:final } } + /**Create temporary and unlisted `ODConfig`, `ODChecker` & `ODCheckerStorage` classes. This will help you use a `ODCheckerStructure` validator without officially registering it in `opendiscord.checkers`. */ + createTemporaryCheckerEnvironment(){ + return new ODChecker("opendiscord:temporary-environment",new ODCheckerStorage(),0,new ODConfig("opendiscord:temporary-environment",{}),new ODCheckerStructure("opendiscord:temporary-environment",{})) + } } /**## ODCheckerStorage `class` diff --git a/src/core/startup/pluginLauncher.ts b/src/core/startup/pluginLauncher.ts index 1d3401c..f8e219f 100644 --- a/src/core/startup/pluginLauncher.ts +++ b/src/core/startup/pluginLauncher.ts @@ -82,7 +82,7 @@ export const loadAllPlugins = async () => { } }) - //sorted plugins (based on priority) + //sorted plugins (sorted on priority. All plugins are loaded & enabled) const sortedPlugins = opendiscord.plugins.getAll().sort((a,b) => { return (b.priority - a.priority) })