Fix import syntax
This commit is contained in:
parent
dcb416cb00
commit
c90a25e0cd
|
@ -1214,7 +1214,7 @@ function registerWorldInfoSlashCommands() {
|
||||||
enumTypes.enum, enumIcons.getDataTypeIcon(value.type))),
|
enumTypes.enum, enumIcons.getDataTypeIcon(value.type))),
|
||||||
|
|
||||||
/** All existing UIDs based on the file argument as world name */
|
/** All existing UIDs based on the file argument as world name */
|
||||||
wiUids: (/** @type {import('./slash-commands/SlashCommandExecutor.js'.SlashCommandExecutor)} */ executor) => {
|
wiUids: (/** @type {import('./slash-commands/SlashCommandExecutor.js').SlashCommandExecutor} */ executor) => {
|
||||||
const file = executor.namedArgumentList.find(it => it.name == 'file')?.value;
|
const file = executor.namedArgumentList.find(it => it.name == 'file')?.value;
|
||||||
if (file instanceof SlashCommandClosure) throw new Error('Argument \'file\' does not support closures');
|
if (file instanceof SlashCommandClosure) throw new Error('Argument \'file\' does not support closures');
|
||||||
// Try find world from cache
|
// Try find world from cache
|
||||||
|
|
Loading…
Reference in New Issue