| 1340 | | 1340 | |
| 1341 | async function getGlobalBooksCallback() { | 1341 | async function getGlobalBooksCallback() { |
| 1342 | if (!selected_world_info?.length) { | 1342 | if (!selected_world_info?.length) { |
| 1343 | return []; | 1343 | return JSON.stringify([]); |
| 1344 | } | 1344 | } |
| 1345 | | 1345 | |
| 1346 | let entries = selected_world_info.slice(); | 1346 | let entries = selected_world_info.slice(); |
| 1347 | | 1347 | |
| 1348 | console.debug(`[WI] Selected global world info has ${entries.length} entries`, selected_world_info); | 1348 | console.debug(`[WI] Selected global world info has ${entries.length} entries`, selected_world_info); |
| 1349 | | 1349 | |
| 1350 | return entries; | 1350 | return JSON.stringify(entries); |
| 1351 | } | 1351 | } |
| 1352 | | 1352 | |
| 1353 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ | 1353 | SlashCommandParser.addCommandObject(SlashCommand.fromProps({ |