feature: variants #22

Merged
akulij merged 19 commits from dev into main 2025-06-05 20:53:03 +00:00
Showing only changes of commit 303dbfdaa8 - Show all commits

View File

@ -500,8 +500,7 @@ pub struct BotMessage {
state: Option<String>, state: Option<String>,
/// flag options to command is meta, so it will be appended to user.metas in db /// flag options to command is meta, so it will be appended to user.metas in db
#[serde(default)] meta: Option<bool>,
meta: bool,
handler: Option<BotFunction>, handler: Option<BotFunction>,
} }
@ -523,7 +522,7 @@ impl BotMessage {
} }
pub fn meta(&self) -> bool { pub fn meta(&self) -> bool {
self.meta self.meta.unwrap_or(false)
} }
} }