Fix message dismissing not saving
This commit is contained in:
parent
b7cf8b8caf
commit
cb3ec8d3a2
1 changed files with 2 additions and 2 deletions
|
@ -119,8 +119,8 @@ impl AsyncCallable for AsyncMessageDismisser {
|
||||||
let id = if let Some(param0) = params.get(0) {
|
let id = if let Some(param0) = params.get(0) {
|
||||||
if let Primitive::Empty = param0 {
|
if let Primitive::Empty = param0 {
|
||||||
None
|
None
|
||||||
} else if let Primitive::U64(since) = param0 {
|
} else if let Primitive::F64(since) = param0 {
|
||||||
Some(*since)
|
Some(*since as u64)
|
||||||
} else {
|
} else {
|
||||||
return vec!["dismiss message invalid parameter 0".into()];
|
return vec!["dismiss message invalid parameter 0".into()];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue