mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix return for /run with closure
This commit is contained in:
@ -1819,7 +1819,7 @@ async function runCallback(args, name) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (name instanceof SlashCommandClosure) {
|
if (name instanceof SlashCommandClosure) {
|
||||||
return await name.execute();
|
return (await name.execute())?.pipe;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**@type {SlashCommandScope} */
|
/**@type {SlashCommandScope} */
|
||||||
|
Reference in New Issue
Block a user