diff --git a/public/scripts/variables.js b/public/scripts/variables.js index 4c6c87142..e0ccfbdc6 100644 --- a/public/scripts/variables.js +++ b/public/scripts/variables.js @@ -909,7 +909,7 @@ export function registerVariableCommands() { 'index', 'list index', [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], false, ), SlashCommandNamedArgument.fromProps({ - name: 'cast', + name: 'as', description: 'change the type of the value when used with index', forceEnum: true, enumProvider: commonEnumProviders.types, @@ -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 convert the value to a specific JSON type when using index, use the case argument. + To convert the value to a specific JSON type when using index, use the as argument.
Example: @@ -1035,7 +1035,7 @@ export function registerVariableCommands() { 'index', 'list index', [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], false, ), SlashCommandNamedArgument.fromProps({ - name: 'cast', + name: 'as', description: 'change the type of the value when used with index', forceEnum: true, enumProvider: commonEnumProviders.types, @@ -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 convert the value to a specific JSON type when using index, use the cast argument. + To convert the value to a specific JSON type when using index, use the as argument.
Example: @@ -2062,7 +2062,7 @@ export function registerVariableCommands() { false, // acceptsMultiple ), SlashCommandNamedArgument.fromProps({ - name: 'cast', + name: 'as', description: 'change the type of the value when used with index', forceEnum: true, enumProvider: commonEnumProviders.types, @@ -2089,7 +2089,7 @@ export function registerVariableCommands() { helpString: `
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. + To convert the value to a specific JSON type when using with index, use the as argument.
Examples: