fix /add multi unnamed

This commit is contained in:
LenAnderson 2024-06-23 11:51:26 -04:00
parent d61fbc3992
commit ab5a6b1c61

View File

@ -1448,7 +1448,7 @@ export function registerVariableCommands() {
})); }));
SlashCommandParser.addCommandObject(SlashCommand.fromProps({ SlashCommandParser.addCommandObject(SlashCommand.fromProps({
name: 'add', name: 'add',
callback: addValuesCallback, callback: (args, /**@type {string[]}*/value) => addValuesCallback(args, value.join(' ')),
returns: 'sum of the provided values', returns: 'sum of the provided values',
unnamedArgumentList: [ unnamedArgumentList: [
SlashCommandArgument.fromProps({ SlashCommandArgument.fromProps({
@ -1460,6 +1460,7 @@ export function registerVariableCommands() {
forceEnum: false, forceEnum: false,
}), }),
], ],
splitUnnamedArgument: true,
helpString: ` helpString: `
<div> <div>
Performs an addition of the set of values and passes the result down the pipe. Performs an addition of the set of values and passes the result down the pipe.