diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 2871ef9db..917840532 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -1340,14 +1340,14 @@ function registerWorldInfoSlashCommands() { async function getGlobalBooksCallback() { if (!selected_world_info?.length) { - return []; + return JSON.stringify([]); } let entries = selected_world_info.slice(); console.debug(`[WI] Selected global world info has ${entries.length} entries`, selected_world_info); - return entries; + return JSON.stringify(entries); } SlashCommandParser.addCommandObject(SlashCommand.fromProps({