mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 07:47:53 +00:00
fix edit message requiring new_content param, fix both edit and rp not using referenced message
This commit is contained in:
parent
d804303615
commit
8cad05ccda
4 changed files with 9 additions and 10 deletions
|
|
@ -10,7 +10,7 @@ pub fn cmds() -> impl IntoIterator<Item = Command> {
|
|||
let reproxy = ("reproxy", ["rp", "crimes", "crime"]);
|
||||
|
||||
let edit = ("edit", ["e"]);
|
||||
let new_content_param = Remainder(("new_content", OpaqueString));
|
||||
let new_content_param = Optional(Remainder(("new_content", OpaqueString)));
|
||||
let apply_edit = |cmd: Command| {
|
||||
cmd.flag(("append", ["a"]))
|
||||
.flag(("prepend", ["p"]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue