BaseEventType
约 261 字小于 1 分钟
2025-10-13
Karin API Docs / BaseEventType
接口: BaseEventType\<T\>
定义于: packages/core/src/types/event/options.ts:164
事件基类定义
Description
所有的事件都拥有这些基本属性
类型参数
T
T
extends EventParent
属性
bot
bot:
AdapterType
定义于: packages/core/src/types/event/options.ts:186
bot自身实例 所有标准Api都通过这里调用
contact
contact:
Contact
定义于: packages/core/src/types/event/options.ts:180
事件联系人信息
event
event:
T
定义于: packages/core/src/types/event/options.ts:170
事件类型
eventId
eventId:
string
定义于: packages/core/src/types/event/options.ts:174
事件ID
rawEvent
rawEvent:
any
定义于: packages/core/src/types/event/options.ts:176
原始事件
selfId
selfId:
string
定义于: packages/core/src/types/event/options.ts:166
机器人ID
sender
sender:
Sender
定义于: packages/core/src/types/event/options.ts:182
事件发送者信息
srcReply
srcReply:
SrcReply
定义于: packages/core/src/types/event/options.ts:184
快速回复源函数 适配器实现
subEvent
subEvent:
EventToSubEvent
[T
]
定义于: packages/core/src/types/event/options.ts:172
事件子类型
time
time:
number
定义于: packages/core/src/types/event/options.ts:178
事件触发时间戳
userId
userId:
string
定义于: packages/core/src/types/event/options.ts:168
用户ID