Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

明确事件 time 字段表述 #184

Merged
merged 1 commit into from
Jun 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion specs/onebotrpc/data-protocol/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
`impl` | string | OneBot 实现名称,格式 `[_a-z]+`
`platform` | string | OneBot 实现平台名称,格式 `[_a-z]+`
`self_id` | string | 机器人自身 ID
`time` | float64 | 事件发生时间(Unix 时间戳),单位:秒
`time` | float64 | 事件发生时间(Unix 时间戳),单位:秒,建议优先采用聊天平台给出的时间,其次采用实现中创建事件对象的时间
`type` | string | 事件类型,必须是 `meta`、`message`、`notice`、`request` 中的一个,分别表示元事件、消息事件、通知事件和请求事件
`detail_type` | string | 事件详细类型
`sub_type` | string | 事件子类型(详细类型的下一级类型)
Expand Down