"acceptsMultiple" should always return array

d231b7f5f4bdcad0d4b3c341d5c59f7477856b0c

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +2 -2Showing whitespace changes
public/scripts/slash-commands/SlashCommandClosure.js+2 -2
@@ -417,8 +417,8 @@ export class SlashCommandClosure {
417 currentValue.push(value);417 currentValue.push(value);
418 args[name] = currentValue;418 args[name] = currentValue;
419 } else {419 } else {
420 // If there is nothing in there, just assign it as singular value, until multiple values are found420 // If there is nothing in there, we create an array with that singular value
421 args[name] = value;421 args[name] = [value];
422 }422 }
423 } else {423 } else {
424 args[name] !== undefined && console.debug(`Named argument assigned multiple times: ${name}`);424 args[name] !== undefined && console.debug(`Named argument assigned multiple times: ${name}`);