Docs: 调整文档 on_command import 路径#3747
Merged
yanyongyu merged 13 commits intononebot:masterfrom Nov 17, 2025
Hidden character warning
The head ref may contain hidden characters: "\u4fee\u590d\u6587\u6863\u4e2d\u4e24\u4e2a\u660e\u663e\u9519\u8bef"
Merged
Conversation
Contributor
|
🚀 Deployed to https://deploy-preview-3747--nonebot2.netlify.app |
Member
Contributor
Author
Member
|
|
Member
|
请再修改下PR的内容,然后同步修改下其他版本文档的内容 |
yanyongyu
reviewed
Nov 14, 2025
Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
Member
|
请把 review 里的两处 import 顺序在四个版本文件中都调整一下,我修改你的 branch 会报错啊,有点逆天 |
yanyongyu
approved these changes
Nov 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

1.文档事件处理中的on_command 的导入路径与其他章节不一致,修改from nonebot.plugin import on_command为from nonebot import on_command
2.处理消息章节消息模板中的 emoji 段 data 键名不一致,将Message(MessageSegment(type='emoji', data={'name': 'tada'}))改为Message(MessageSegment(type='emoji', data={'emoji': 'tada'}))