Bugfixes & Improvements

Added "maximum buttons per row" in panels. Fixed reaction role reply glitching when replyOnReactionRole was disabled. Panel dropdowns now support reaction role & sub-panel options.
This commit is contained in:
DJj123dj
2026-05-23 16:45:01 +02:00
parent c64220cad4
commit 6c41aecfa7
12 changed files with 289 additions and 117 deletions
+4 -3
View File
@@ -123,7 +123,8 @@ export function registerDefaultCheckerCustomTranslations(tm:api.ODMappedCheckerT
tm.quickTranslate(lm,"checker.messages.invalidButton","message","opendiscord:invalid-button") // This button needs to have at least an {0} or {1}!
tm.quickTranslate(lm,"checker.messages.unusedOption","message","opendiscord:unused-option") // The option {0} isn't used anywhere!
tm.quickTranslate(lm,"checker.messages.unusedQuestion","message","opendiscord:unused-question") // The question {0} isn't used anywhere!
tm.quickTranslate(lm,"checker.messages.dropdownOption","message","opendiscord:dropdown-option") // A panel with dropdown enabled can only contain options of the 'ticket' type!
//TODO TRANSLATION!!! (changed)
//tm.quickTranslate(lm,"checker.messages.dropdownOption","message","opendiscord:dropdown-option") // A panel with dropdown can only contain options of the types: 'ticket', 'role' or 'sub-panel'.
tm.quickTranslate(lm,"checker.messages.customInvalidVersion","message","opendiscord:invalid-version") // The version specified in your config does not match! Make sure you have updated the config to the latest version!
}
@@ -828,11 +829,11 @@ export const defaultDropdownOptionsFunction = (manager:api.ODCheckerManager, fun
if (panel.options.some((optId) => {
const option = optionConfig.data.find((option) => option.id == optId)
if (!option) return false
if (option.type != "ticket") return true
if (option.type != "ticket" && option.type != "role" && option.type != "sub-panel") return true
else return false
})){
//give error when non-ticket options exist in dropdown panel!
final.push(functions.createMessage("opendiscord:panels","opendiscord:dropdown-option",panelConfig.file,"error","A panel with dropdown enabled can only contain options of the 'ticket' type!",[index,"options"],null,[],new api.ODId("opendiscord:dropdown-options"),null))
final.push(functions.createMessage("opendiscord:panels","opendiscord:dropdown-option",panelConfig.file,"error","A panel with dropdown can only contain options of the types: 'ticket', 'role' or 'sub-panel'.",[index,"options"],null,[],new api.ODId("opendiscord:dropdown-options"),null))
}
})