Rename type => cast
| @@ -909,8 +909,8 @@ export function registerVariableCommands() { | ||
| 909 | 909 | 'index', 'list index', [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], false, |
| 910 | 910 | ), |
| 911 | 911 | SlashCommandNamedArgument.fromProps({ |
| 912 | 912 | name: 'typecast', |
| 913 | 913 | description: 'change the type of the value when used with index', |
| 914 | 914 | forceEnum: true, |
| 915 | 915 | enumProvider: commonEnumProviders.types, |
| 916 | 916 | isRequired: false, |
| @@ -925,7 +925,7 @@ export function registerVariableCommands() { | ||
| 925 | 925 | helpString: ` |
| 926 | 926 | <div> |
| 927 | 927 | Set a local variable value and pass it down the pipe. The <code>index</code> argument is optional. |
| 928 | 928 | To performconvert the value to a typespecific conversionJSON type when using <code>index</code>, use the <code>typecase</code> argument. |
| 929 | 929 | </div> |
| 930 | 930 | <div> |
| 931 | 931 | <strong>Example:</strong> |
| @@ -1035,8 +1035,8 @@ export function registerVariableCommands() { | ||
| 1035 | 1035 | 'index', 'list index', [ARGUMENT_TYPE.NUMBER, ARGUMENT_TYPE.STRING], false, |
| 1036 | 1036 | ), |
| 1037 | 1037 | SlashCommandNamedArgument.fromProps({ |
| 1038 | 1038 | name: 'typecast', |
| 1039 | 1039 | description: 'change the type of the value when used with index', |
| 1040 | 1040 | forceEnum: true, |
| 1041 | 1041 | enumProvider: commonEnumProviders.types, |
| 1042 | 1042 | isRequired: false, |
| @@ -1051,7 +1051,7 @@ export function registerVariableCommands() { | ||
| 1051 | 1051 | helpString: ` |
| 1052 | 1052 | <div> |
| 1053 | 1053 | Set a global variable value and pass it down the pipe. The <code>index</code> argument is optional. |
| 1054 | 1054 | To performconvert the value to a typespecific conversionJSON type when using <code>index</code>, use the <code>typecast</code> argument. |
| 1055 | 1055 | </div> |
| 1056 | 1056 | <div> |
| 1057 | 1057 | <strong>Example:</strong> |
| @@ -2062,8 +2062,8 @@ export function registerVariableCommands() { | ||
| 2062 | 2062 | false, // acceptsMultiple |
| 2063 | 2063 | ), |
| 2064 | 2064 | SlashCommandNamedArgument.fromProps({ |
| 2065 | 2065 | name: 'typecast', |
| 2066 | 2066 | description: 'change the type of the value when used with index', |
| 2067 | 2067 | forceEnum: true, |
| 2068 | 2068 | enumProvider: commonEnumProviders.types, |
| 2069 | 2069 | isRequired: false, |
| @@ -2088,7 +2088,8 @@ export function registerVariableCommands() { | ||
| 2088 | 2088 | splitUnnamedArgumentCount: 1, |
| 2089 | 2089 | helpString: ` |
| 2090 | 2090 | <div> |
| 2091 | - Get or set a variable. | |
| 2091 | + Get or set a variable. Use <code>index</code> to access elements of a list or dictionary. | |
| 2092 | + To convert the value to a specific JSON type when using with <code>index</code>, use the <code>cast</code> argument. | |
| 2092 | 2093 | </div> |
| 2093 | 2094 | <div> |
| 2094 | 2095 | <strong>Examples:</strong> |