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:
@@ -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))
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -33,8 +33,11 @@ export const loadPanel = (panel:api.ODPanelsJsonConfig_Panel) => {
|
||||
new api.ODPanelData("opendiscord:embed",panel.embed),
|
||||
|
||||
new api.ODPanelData("opendiscord:dropdown-placeholder",panel.settings.dropdownPlaceholder),
|
||||
new api.ODPanelData("opendiscord:maximum-buttons-per-row",panel.settings.maximumButtonsPerRow),
|
||||
|
||||
new api.ODPanelData("opendiscord:enable-max-tickets-warning-text",panel.settings.enableMaxTicketsWarningInText),
|
||||
new api.ODPanelData("opendiscord:enable-max-tickets-warning-embed",panel.settings.enableMaxTicketsWarningInEmbed),
|
||||
|
||||
new api.ODPanelData("opendiscord:describe-options-layout",panel.settings.describeOptionsLayout),
|
||||
new api.ODPanelData("opendiscord:describe-options-custom-title",panel.settings.describeOptionsCustomTitle),
|
||||
new api.ODPanelData("opendiscord:describe-options-in-text",panel.settings.describeOptionsInText),
|
||||
|
||||
Reference in New Issue
Block a user