This commit is contained in:
parent
fbd4555a40
commit
9495814ebf
@ -11,6 +11,8 @@ class LarkBody {
|
||||
public msgText: string = ""
|
||||
public rawMsgText: string = ""
|
||||
public chatType?: LarkEvent.Message["chat_type"]
|
||||
public isP2P?: boolean
|
||||
public isInGroup?: boolean
|
||||
public mentions?: LarkEvent.Mention[]
|
||||
public actionType?: LarkAction.Data["action"]["tag"]
|
||||
public actionValue?: LarkAction.Data["action"]["value"]
|
||||
@ -40,6 +42,8 @@ class LarkBody {
|
||||
this.msgText = this.getMsgText(eventBody)
|
||||
this.rawMsgText = this.getRawMsgText(eventBody)
|
||||
this.chatType = this.getChatType(eventBody)
|
||||
this.isP2P = this.chatType === "p2p"
|
||||
this.isInGroup = this.chatType === "group"
|
||||
this.mentions = this.getMentions(eventBody)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user