feat(lark-msg-tool): 添加 isLarkBody 属性以标识 Lark 消息体类型
All checks were successful
/ release (push) Successful in 30s
All checks were successful
/ release (push) Successful in 30s
This commit is contained in:
parent
3e6cf68869
commit
951bb88a54
@ -2,6 +2,10 @@ import { LarkAction, LarkEvent } from "../types"
|
||||
|
||||
class LarkBody {
|
||||
protected body: LarkEvent.Data | LarkAction.Data
|
||||
/**
|
||||
* 是否为Lark消息体
|
||||
*/
|
||||
public isLarkBody: boolean = true
|
||||
/**
|
||||
* 是否为事件消息
|
||||
*/
|
||||
@ -117,6 +121,7 @@ class LarkBody {
|
||||
|
||||
this.chatId = this.getChatId(body)
|
||||
this.messageId = this.getMessageId(body)
|
||||
this.isLarkBody = this.isEvent || this.isAction
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user