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