Fix message dismissing not saving

This commit is contained in:
NGnius (Graham) 2023-08-07 16:12:22 -04:00
parent b7cf8b8caf
commit cb3ec8d3a2

View file

@ -119,8 +119,8 @@ impl AsyncCallable for AsyncMessageDismisser {
let id = if let Some(param0) = params.get(0) {
if let Primitive::Empty = param0 {
None
} else if let Primitive::U64(since) = param0 {
Some(*since)
} else if let Primitive::F64(since) = param0 {
Some(*since as u64)
} else {
return vec!["dismiss message invalid parameter 0".into()];
}