From 7ffc69b83bd09b445a7ba9de8c8f02df9659b268 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Fri, 9 Aug 2024 00:38:51 +0200 Subject: [PATCH] /delswipe returns current swipe id --- public/scripts/slash-commands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index a1446c9c0..99d6f5639 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -717,6 +717,7 @@ export function initDefaultSlashCommands() { SlashCommandParser.addCommandObject(SlashCommand.fromProps({ name: 'delswipe', callback: deleteSwipeCallback, + returns: 'the new, currently selected swipe id', aliases: ['swipedel'], unnamedArgumentList: [ SlashCommandArgument.fromProps({ @@ -2269,7 +2270,7 @@ async function deleteSwipeCallback(_, arg) { await saveChatConditional(); await reloadCurrentChat(); - return ''; + return String(newSwipeId); } async function askCharacter(args, text) {