add clear-embed and clear-attachment aliases for respective flags to edit cmd

This commit is contained in:
dusk 2025-11-23 20:07:14 +00:00
parent 3612cc2277
commit c68a77bb32
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -14,8 +14,8 @@ pub fn cmds() -> impl Iterator<Item = Command> {
.flag(("prepend", ["p"])) .flag(("prepend", ["p"]))
.flag(("regex", ["r"])) .flag(("regex", ["r"]))
.flag(("no-space", ["nospace", "ns"])) .flag(("no-space", ["nospace", "ns"]))
.flag(("clear-embeds", ["ce"])) .flag(("clear-embeds", ["clear-embed", "ce"]))
.flag(("clear-attachments", ["ca"])) .flag(("clear-attachments", ["clear-attachment", "ca"]))
.help("Edits a proxied message") .help("Edits a proxied message")
}; };

View file

@ -105,7 +105,7 @@ impl Display for Command {
break; break;
} }
write!(f, "{flag}")?; write!(f, "{flag}")?;
if max_flags - 1 > written { if max_flags > written {
write!(f, " ")?; write!(f, " ")?;
} }
written += 1; written += 1;