mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 16:50:10 +00:00
fix message edit commands, parse DM message links for ids
This commit is contained in:
parent
134855f8f8
commit
a307dd37c4
6 changed files with 74 additions and 47 deletions
|
|
@ -51,8 +51,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
extract_fn_name = get_param_param_ty(param.kind()),
|
||||
throw_null = param
|
||||
.is_optional()
|
||||
.then_some("")
|
||||
.unwrap_or(" ?? throw new PKError(\"this is a bug\")"),
|
||||
.then(String::new)
|
||||
.unwrap_or(format!(" ?? throw new PKError(\"parameter {} not found but was required, this is a bug in the command parser, for command: {}!\")", param.name(), command.cb)),
|
||||
)?;
|
||||
}
|
||||
let mut command_flags_init = String::new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue