/delswipe returns current swipe id

This commit is contained in:
Wolfsblvt 2024-08-09 00:38:51 +02:00
parent 2ce58bb0a6
commit 7ffc69b83b
1 changed files with 2 additions and 1 deletions

View File

@ -717,6 +717,7 @@ export function initDefaultSlashCommands() {
SlashCommandParser.addCommandObject(SlashCommand.fromProps({ SlashCommandParser.addCommandObject(SlashCommand.fromProps({
name: 'delswipe', name: 'delswipe',
callback: deleteSwipeCallback, callback: deleteSwipeCallback,
returns: 'the new, currently selected swipe id',
aliases: ['swipedel'], aliases: ['swipedel'],
unnamedArgumentList: [ unnamedArgumentList: [
SlashCommandArgument.fromProps({ SlashCommandArgument.fromProps({
@ -2269,7 +2270,7 @@ async function deleteSwipeCallback(_, arg) {
await saveChatConditional(); await saveChatConditional();
await reloadCurrentChat(); await reloadCurrentChat();
return ''; return String(newSwipeId);
} }
async function askCharacter(args, text) { async function askCharacter(args, text) {