From 1cfc21d4fffc404782e141fe2587e2fd6d0607f6 Mon Sep 17 00:00:00 2001 From: Zomatree Date: Fri, 29 Dec 2023 20:10:57 +0000 Subject: [PATCH] Undo on failed args when the default exists --- revolt/ext/commands/command.py | 1 + 1 file changed, 1 insertion(+) diff --git a/revolt/ext/commands/command.py b/revolt/ext/commands/command.py index 8a4d6ff..e9cfbbf 100755 --- a/revolt/ext/commands/command.py +++ b/revolt/ext/commands/command.py @@ -175,6 +175,7 @@ class Command(Generic[ClientT_Co_D]): except StopIteration: if parameter.default is not parameter.empty: arg = parameter.default + context.view.undo() else: raise