/delswipe returns current swipe id

7ffc69b83bd09b445a7ba9de8c8f02df9659b268

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +2 -1Ignore whitespace
public/scripts/slash-commands.js+2 -1
@@ -717,6 +717,7 @@ export function initDefaultSlashCommands() {
717 SlashCommandParser.addCommandObject(SlashCommand.fromProps({717 SlashCommandParser.addCommandObject(SlashCommand.fromProps({
718 name: 'delswipe',718 name: 'delswipe',
719 callback: deleteSwipeCallback,719 callback: deleteSwipeCallback,
720 returns: 'the new, currently selected swipe id',
720 aliases: ['swipedel'],721 aliases: ['swipedel'],
721 unnamedArgumentList: [722 unnamedArgumentList: [
722 SlashCommandArgument.fromProps({723 SlashCommandArgument.fromProps({
@@ -2269,7 +2270,7 @@ async function deleteSwipeCallback(_, arg) {
2269 await saveChatConditional();2270 await saveChatConditional();
2270 await reloadCurrentChat();2271 await reloadCurrentChat();
22712272
2272 return '';2273 return String(newSwipeId);
2273}2274}
22742275
2275async function askCharacter(args, text) {2276async function askCharacter(args, text) {