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