cast => as

This commit is contained in:
Cohee 2024-09-01 11:50:16 +03:00
parent 5d798fafdd
commit 329e395077

View File

@ -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: `
<div>
Set a local variable value and pass it down the pipe. The <code>index</code> argument is optional.
To convert the value to a specific JSON type when using <code>index</code>, use the <code>case</code> argument.
To convert the value to a specific JSON type when using <code>index</code>, use the <code>as</code> argument.
</div>
<div>
<strong>Example:</strong>
@ -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: `
<div>
Set a global variable value and pass it down the pipe. The <code>index</code> argument is optional.
To convert the value to a specific JSON type when using <code>index</code>, use the <code>cast</code> argument.
To convert the value to a specific JSON type when using <code>index</code>, use the <code>as</code> argument.
</div>
<div>
<strong>Example:</strong>
@ -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: `
<div>
Get or set a variable. Use <code>index</code> to access elements of a list or dictionary.
To convert the value to a specific JSON type when using with <code>index</code>, use the <code>cast</code> argument.
To convert the value to a specific JSON type when using with <code>index</code>, use the <code>as</code> argument.
</div>
<div>
<strong>Examples:</strong>