is_private_msg

Function is_private_msg 

Source
pub fn is_private_msg(event: &Value) -> bool
Expand description

判断一个事件是否为私聊消息。

§参数

  • event - 表示要检查的事件的JSON值

§返回值

如果事件是私聊消息则返回true,否则返回false