mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-12 10:00:36 +01:00
/delswipe returns current swipe id
This commit is contained in:
parent
2ce58bb0a6
commit
7ffc69b83b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user