mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-08 08:08:51 +01:00
fix enumProvider not getting scope
This commit is contained in:
parent
91ffd141ef
commit
c213a64340
@ -1078,8 +1078,8 @@ export function initDefaultSlashCommands() {
|
|||||||
description: 'scoped variable or qr label',
|
description: 'scoped variable or qr label',
|
||||||
typeList: [ARGUMENT_TYPE.VARIABLE_NAME, ARGUMENT_TYPE.STRING, ARGUMENT_TYPE.CLOSURE],
|
typeList: [ARGUMENT_TYPE.VARIABLE_NAME, ARGUMENT_TYPE.STRING, ARGUMENT_TYPE.CLOSURE],
|
||||||
isRequired: true,
|
isRequired: true,
|
||||||
enumProvider: () => [
|
enumProvider: (executor, scope) => [
|
||||||
...commonEnumProviders.variables('scope')(),
|
...commonEnumProviders.variables('scope')(executor, scope),
|
||||||
...(typeof window['qrEnumProviderExecutables'] === 'function') ? window['qrEnumProviderExecutables']() : [],
|
...(typeof window['qrEnumProviderExecutables'] === 'function') ? window['qrEnumProviderExecutables']() : [],
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user