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