feature: variants #22
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user