mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Update crates/teloxide-macros/src/command.rs
Co-authored-by: Waffle Maybe <waffle.lapkin@gmail.com>
This commit is contained in:
parent
44d230e3be
commit
53b5dd0a18
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ impl Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn description_is_enabled(&self) -> bool {
|
pub(crate) fn description_is_enabled(&self) -> bool {
|
||||||
|
// FIXME: remove the first, `== "off"`, check eventually
|
||||||
self.description != Some("off".to_owned()) && !self.hidden
|
self.description != Some("off".to_owned()) && !self.hidden
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue