Skip to content

📝 新增 Discord 适配器使用教程 - #101

Merged
shoucandanghehe merged 2 commits into
masterfrom
docs/usage-guide
Nov 18, 2026
Merged

shoucandanghehe merged 2 commits into
masterfrom
docs/usage-guide

Conversation

@shoucandanghehe

Copy link
Copy Markdown
Member

README 里原来的长示例拆成了 docs/ 下的分步教程。README 只保留安装方法和教程入口。

  • configuration.md:创建机器人、安装驱动器、填写 .env、启动,以及常见问题排查(代理、Interactions Endpoint URL、Message Content Intent)
  • application-commands.md:写第一个斜杠命令、加参数、子命令和右键菜单命令、在 application_commands 里登记命令
  • sending-messages.md:用 send_deferred_response() 处理超过 3 秒的操作,发文件、卡片和按钮,响应按钮点击,主动发消息,引用用户消息
  • api-and-events.md:怎么查 Bot 方法的参数和返回值、请求失败时抛哪些异常、事件分类,以及常用方法和事件对照表

只改了文档,代码没有变动。教程里的 Python 示例都通过了 Ruff 检查,并能作为 NoneBot 插件正常加载。

Closes #86

@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.88%. Comparing base (9d66470) to head (9d8b233).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #101   +/-   ##
=======================================
  Coverage   77.88%   77.88%           
=======================================
  Files          41       41           
  Lines        7428     7428           
  Branches      381      381           
=======================================
  Hits         5785     5785           
  Misses       1539     1539           
  Partials      104      104           
Flag Coverage Δ
unittests 77.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@shoucandanghehe
shoucandanghehe merged commit f2317d7 into master Nov 18, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: 细化文档

1 participant