Added new config checker utility function

createTemporaryCheckerEnvironment() is able to help you with using `ODCheckerStructure` validators without officially registering them in opendiscord.checkers.
This commit is contained in:
DJj123dj
2025-06-11 21:10:29 +02:00
parent b683365126
commit 72627a7058
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -82,6 +82,10 @@ export class ODCheckerManager extends ODManager<ODChecker> {
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`