(v4.1) Minor Bugfixes

This commit is contained in:
JasperAtSchool
2025-11-05 14:53:05 +01:00
parent 4b485adf82
commit 5494c1ad8f
6 changed files with 27 additions and 14 deletions
+7 -2
View File
@@ -182,7 +182,8 @@ export interface ODHelpMenuManagerCategoryIds_DefaultTicketUser {
"opendiscord:claim":ODHelpMenuCommandComponent,
"opendiscord:unclaim":ODHelpMenuCommandComponent,
"opendiscord:add":ODHelpMenuCommandComponent,
"opendiscord:remove":ODHelpMenuCommandComponent
"opendiscord:remove":ODHelpMenuCommandComponent,
"opendiscord:transfer":ODHelpMenuCommandComponent,
}
/**## ODHelpMenuCategory_DefaultTicketUser `default_class`
@@ -265,7 +266,11 @@ export interface ODHelpMenuManagerCategoryIds_DefaultAdvanced {
"opendiscord:stats-ticket":ODHelpMenuCommandComponent,
"opendiscord:stats-user":ODHelpMenuCommandComponent,
"opendiscord:autoclose-disable":ODHelpMenuCommandComponent,
"opendiscord:autoclose-enable":ODHelpMenuCommandComponent
"opendiscord:autoclose-enable":ODHelpMenuCommandComponent,
"opendiscord:autodelete-disable":ODHelpMenuCommandComponent,
"opendiscord:autodelete-enable":ODHelpMenuCommandComponent,
"opendiscord:topic-set":ODHelpMenuCommandComponent,
"opendiscord:priority-set":ODHelpMenuCommandComponent,
}
/**## ODHelpMenuCategory_DefaultAdvanced `default_class`
+1 -1
View File
@@ -697,7 +697,7 @@ export class ODCheckerNumberStructure extends ODCheckerStructure {
checker.createMessage("opendiscord:invalid-type","error","This property needs to be the type: number!",lt,null,["number"],this.id,(this.options.docs ?? null))
return false
}else if (!this.options.nanAllowed && isNaN(value)){
checker.createMessage("opendiscord:number-nan","error",`This number can't NaN (Not A Number)!`,lt,null,[],this.id,(this.options.docs ?? null))
checker.createMessage("opendiscord:number-nan","error",`This number can't be NaN (Not A Number)!`,lt,null,[],this.id,(this.options.docs ?? null))
return false
}else if (typeof this.options.minLength != "undefined" && value.toString().length < this.options.minLength){
checker.createMessage("opendiscord:number-too-short","error",`This number can't be shorter than ${this.options.minLength} characters!`,lt,null,[this.options.minLength.toString()],this.id,(this.options.docs ?? null))