rules is now Optional
This commit is contained in:
parent
42fc884a58
commit
240fb7f70e
@ -35,7 +35,10 @@ fn print_mtg_card (card: &MtgCard, message: &Message) {
|
||||
}
|
||||
|
||||
message.reply(&format!("**{}**", card.typeline));
|
||||
message.reply(&format!("{}", card.rules));
|
||||
|
||||
if let Some(ref rules) = card.rules {
|
||||
message.reply(&format!("{}", rules));
|
||||
}
|
||||
|
||||
if let Some(ref flavor) = card.flavor {
|
||||
message.reply(&format!("*{}*", flavor));
|
||||
|
Loading…
x
Reference in New Issue
Block a user