fix: provide default serde value for BotMessage.variants
This commit is contained in:
parent
8a3e8c4705
commit
6d017b1993
@ -501,6 +501,7 @@ pub struct BotMessage {
|
||||
|
||||
/// flag options to command is meta, so it will be appended to user.metas in db
|
||||
meta: Option<bool>,
|
||||
#[serde(default)]
|
||||
variants: Vec<MessageVariant>,
|
||||
|
||||
handler: Option<BotFunction>,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user