/delswipe returns current swipe id
| @@ -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(); |
| 2271 | 2272 | ||
| 2272 | return ''; | 2273 | return String(newSwipeId); |
| 2273 | } | 2274 | } |
| 2274 | 2275 | ||
| 2275 | async function askCharacter(args, text) { | 2276 | async function askCharacter(args, text) { |