diff --git a/public/scripts/slash-commands/SlashCommandArgument.js b/public/scripts/slash-commands/SlashCommandArgument.js index 1fc4092ea..f117da372 100644 --- a/public/scripts/slash-commands/SlashCommandArgument.js +++ b/public/scripts/slash-commands/SlashCommandArgument.js @@ -55,7 +55,7 @@ export class SlashCommandNamedArgument extends SlashCommandArgument { * @param {string|string[]} enums */ constructor(name, description, types, isRequired = false, acceptsMultiple = false, defaultValue = null, enums = [], aliases = []) { - super(name, description, types, isRequired, acceptsMultiple, defaultValue, enums); + super(description, types, isRequired, acceptsMultiple, defaultValue, enums); this.name = name; this.aliasList = aliases ? Array.isArray(aliases) ? aliases : [aliases] : []; } diff --git a/public/scripts/variables.js b/public/scripts/variables.js index 3d3ecf63a..a2aa63687 100644 --- a/public/scripts/variables.js +++ b/public/scripts/variables.js @@ -773,7 +773,7 @@ export function registerVariableCommands() { 'else', 'command to execute if not true', [ARGUMENT_TYPE.CLOSURE, ARGUMENT_TYPE.SUBCOMMAND], false, )); ifCmd.unnamedArgumentList.push(new SlashCommandArgument( - 'then', 'command to execute if true', [ARGUMENT_TYPE.CLOSURE, ARGUMENT_TYPE.SUBCOMMAND], true, + 'command to execute if true', [ARGUMENT_TYPE.CLOSURE, ARGUMENT_TYPE.SUBCOMMAND], true, )); ifCmd.returns = 'result of the executed command ("then" or "else")'; ifCmd.helpString = `