optimalization

This commit is contained in:
SPRINX0\prochazka
2025-11-11 08:25:56 +01:00
parent 92a78a419e
commit c2920e195f

View File

@@ -44,9 +44,8 @@ export default function registerCommand(command: GlobalCommand) {
...x, ...x,
[command.id]: { [command.id]: {
text: text:
_val(command.category) || _val(command.name) _.isFunction(command.category) || _.isFunction(command.name)
? () => ? () => `${_val(command.category)}: ${_val(command.name)}`
`${_val(command.category)}: ${_val(command.name)}`
: `${command.category}: ${command.name}`, : `${command.category}: ${command.name}`,
...command, ...command,
enabled: !testEnabled, enabled: !testEnabled,