diff --git a/public/scripts/variables.js b/public/scripts/variables.js index 78317100c..4c6c87142 100644 --- a/public/scripts/variables.js +++ b/public/scripts/variables.js @@ -909,8 +909,8 @@ export function registerVariableCommands() { 'index', 'list index', [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], false, ), SlashCommandNamedArgument.fromProps({ - name: 'type', - description: 'type of the value when used with index', + name: 'cast', + description: 'change the type of the value when used with index', forceEnum: true, enumProvider: commonEnumProviders.types, isRequired: false, @@ -925,7 +925,7 @@ export function registerVariableCommands() { helpString: `
Set a local variable value and pass it down the pipe. The index argument is optional. - To perform a type conversion when using index, use the type argument. + To convert the value to a specific JSON type when using index, use the case argument.
Example: @@ -1035,8 +1035,8 @@ export function registerVariableCommands() { 'index', 'list index', [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], false, ), SlashCommandNamedArgument.fromProps({ - name: 'type', - description: 'type of the value when used with index', + name: 'cast', + description: 'change the type of the value when used with index', forceEnum: true, enumProvider: commonEnumProviders.types, isRequired: false, @@ -1051,7 +1051,7 @@ export function registerVariableCommands() { helpString: `
Set a global variable value and pass it down the pipe. The index argument is optional. - To perform a type conversion when using index, use the type argument. + To convert the value to a specific JSON type when using index, use the cast argument.
Example: @@ -2062,8 +2062,8 @@ export function registerVariableCommands() { false, // acceptsMultiple ), SlashCommandNamedArgument.fromProps({ - name: 'type', - description: 'type of the value when used with index', + name: 'cast', + description: 'change the type of the value when used with index', forceEnum: true, enumProvider: commonEnumProviders.types, isRequired: false, @@ -2088,7 +2088,8 @@ export function registerVariableCommands() { splitUnnamedArgumentCount: 1, helpString: `
- Get or set a variable. + Get or set a variable. Use index to access elements of a list or dictionary. + To convert the value to a specific JSON type when using with index, use the cast argument.
Examples: