mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-09 23:37:54 +00:00
add clear-embed and clear-attachment aliases for respective flags to edit cmd
This commit is contained in:
parent
3612cc2277
commit
c68a77bb32
2 changed files with 3 additions and 3 deletions
|
|
@ -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")
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue