Interface PrivateMessageEvent

私聊消息事件

Hierarchy

Properties

auto_reply: boolean
cqCode: string
div: number
font: string
friend: Friend

好友对象

from_id: number
index: number
message: MessageElem[]

消息元素数组

message_id: string = ""
message_type: "private" = ...
pktnum: number
post_type: "message" = ...
rand: number

消息随机数

raw_message: string

字符串形式的消息

sender: { discuss_id: undefined | number; group_id: undefined | number; nickname: string; user_id: number } = ...

Type declaration

  • discuss_id: undefined | number
  • group_id: undefined | number
  • nickname: string
  • user_id: number
seq: number

消息编号,在群消息中是唯一的 (私聊消息建议至少使用time,seq,rand中的两个判断唯一性)

source?: Quotable

引用回复

sub_type: "self" | "other" | "group" | "friend" = ...

friend:好友 group:群临时会话 self:我的设备 other:其他途径的临时会话

time: number

消息时间

to_id: number
user_id: number

Methods

Generated using TypeDoc