From c68a77bb32449aaa87f39ee0b7910e593ec577f4 Mon Sep 17 00:00:00 2001 From: dusk Date: Sun, 23 Nov 2025 20:07:14 +0000 Subject: [PATCH] add clear-embed and clear-attachment aliases for respective flags to edit cmd --- crates/command_definitions/src/message.rs | 4 ++-- crates/command_parser/src/command.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/command_definitions/src/message.rs b/crates/command_definitions/src/message.rs index 4ba2ae46..77427741 100644 --- a/crates/command_definitions/src/message.rs +++ b/crates/command_definitions/src/message.rs @@ -14,8 +14,8 @@ pub fn cmds() -> impl Iterator { .flag(("prepend", ["p"])) .flag(("regex", ["r"])) .flag(("no-space", ["nospace", "ns"])) - .flag(("clear-embeds", ["ce"])) - .flag(("clear-attachments", ["ca"])) + .flag(("clear-embeds", ["clear-embed", "ce"])) + .flag(("clear-attachments", ["clear-attachment", "ca"])) .help("Edits a proxied message") }; diff --git a/crates/command_parser/src/command.rs b/crates/command_parser/src/command.rs index dacb271f..83b57ae0 100644 --- a/crates/command_parser/src/command.rs +++ b/crates/command_parser/src/command.rs @@ -105,7 +105,7 @@ impl Display for Command { break; } write!(f, "{flag}")?; - if max_flags - 1 > written { + if max_flags > written { write!(f, " ")?; } written += 1;