create BotMessage js function handler getter
This commit is contained in:
parent
bc46e0fda4
commit
9cd0765030
@ -506,6 +506,10 @@ impl BotMessage {
|
||||
pub fn is_replace(&self) -> bool {
|
||||
self.replace
|
||||
}
|
||||
|
||||
pub fn get_handler(&self) -> Option<&BotFunction> {
|
||||
self.handler.as_ref()
|
||||
}
|
||||
}
|
||||
|
||||
impl BotMessage {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user