Specify that flushvar supports closures

This commit is contained in:
Cohee 2024-06-23 18:28:22 +03:00
parent 946994af22
commit fa9ae4c979

View File

@ -1400,8 +1400,8 @@ export function registerVariableCommands() {
unnamedArgumentList: [ unnamedArgumentList: [
SlashCommandNamedArgument.fromProps({ SlashCommandNamedArgument.fromProps({
name: 'key', name: 'key',
description: 'variable name', description: 'variable name or closure that returns a variable name',
typeList: [ARGUMENT_TYPE.VARIABLE_NAME], typeList: [ARGUMENT_TYPE.VARIABLE_NAME, ARGUMENT_TYPE.CLOSURE],
enumProvider: commonEnumProviders.variables('local'), enumProvider: commonEnumProviders.variables('local'),
}), }),
], ],
@ -1426,8 +1426,8 @@ export function registerVariableCommands() {
unnamedArgumentList: [ unnamedArgumentList: [
SlashCommandNamedArgument.fromProps({ SlashCommandNamedArgument.fromProps({
name: 'key', name: 'key',
description: 'variable name', description: 'variable name or closure that returns a variable name',
typeList: [ARGUMENT_TYPE.VARIABLE_NAME], typeList: [ARGUMENT_TYPE.VARIABLE_NAME, ARGUMENT_TYPE.CLOSURE],
enumProvider: commonEnumProviders.variables('global'), enumProvider: commonEnumProviders.variables('global'),
}), }),
], ],