Repository navigation
♻️ 重构handle #59
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
Merged
Merged
♻️ 重构handle #59
Changes from all commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
edddce9
💥 将 UNSET 改为使用 metaclass 实现
shoucandanghehe 336f054
🔧 为 client.pyi 添加一些 ignore
shoucandanghehe 2c45926
✨ 添加 omit_unset 方法
shoucandanghehe 8ab0e1b
♻️ 重构 handle
shoucandanghehe fb1fa90
:rotating_light: auto fix by pre-commit hooks
pre-commit-ci[bot] 36850d9
🐛 修复可空字段显式 null 传递
shoucandanghehe 13d091e
🐛 修复 bool 查询参数编码
shoucandanghehe 5f2542c
🐛 对齐可空语义与位置更新
shoucandanghehe 97c3e01
🐛 对齐 API 行为与文档约束
shoucandanghehe 048d00b
🐛 修正响应体解析与返回类型
shoucandanghehe 61c4bb1
🐛 完善附件与论坛标签参数
shoucandanghehe 1e118bd
🐛 修复默认值与必填参数约束
shoucandanghehe e8bf4eb
🐛 补全参数范围与互斥校验
shoucandanghehe 6dc9895
🐛 修复鉴权与路由参数不一致
shoucandanghehe a00ca68
🐛 修复线程参数与归档时间处理
shoucandanghehe dd64d08
✨ 新增 client.pyi 生成脚本
shoucandanghehe 3144266
🔧 配置 client.pyi 自动生成并对齐格式
shoucandanghehe 71708c7
:rotating_light: auto fix by pre-commit hooks
pre-commit-ci[bot] 9993f0c
🐛 修复 generate-client-pyi hook 的 uv 依赖
shoucandanghehe a2e623a
♻️ 引入 Range 注解参数校验
shoucandanghehe 14cdc83
🐛 修复 Ruff 警告
shoucandanghehe 94c3da5
✨ 为参数约束补充 overload 软提示
shoucandanghehe 364f5b6
♻️ 抽离参数校验模块并补充规则测试
shoucandanghehe 1011d94
🐛 修复 client.pyi 生成器对 Annotated 与 overload 的处理
shoucandanghehe 52944b5
♻️ 为已移除 guild 端点增加软弃用告警
shoucandanghehe 91b7e0f
✅ 为已移除 guild 端点补充弃用告警测试
shoucandanghehe 5b73f36
🐛 修复 modify_DM 图标字节编码
shoucandanghehe d54bd43
🔥 移除一些 TODO
shoucandanghehe ab34a6b
♻️ 移除 _request 的 bot 参数并同步调用
shoucandanghehe aa1add4
♻️ _call_api 支持无 bot 形参处理器
shoucandanghehe 43d70ba
♻️ 移除未使用的 bot 形参
shoucandanghehe 489fd6e
🐛 修复消息回复检查对 UNSET 的判定
shoucandanghehe 0957053
♻️ 统一发送模型的可选字段为 Missing
shoucandanghehe 691d18b
♻️ 统一序列化链路使用 omit_unset
shoucandanghehe 7e08824
✅ 补充 UNSET 序列化回归测试
shoucandanghehe 0eab329
♻️ 合并序列化入口到 model_dump
shoucandanghehe c8b9474
♻️ 统一 API 序列化参数为 omit_unset_values
shoucandanghehe 6dcecbc
♻️ 同步命令存储序列化参数与类型
shoucandanghehe 4445578
✨ 为 client.pyi 生成增加哈希校验与元信息
shoucandanghehe 0b2e5c2
♻️ 将测试动态导入改为静态导入
shoucandanghehe 8816594
🐛 修正 ApplicationCommandCreate 模型定义
shoucandanghehe c0a9443
🐛 修正 ExecuteWebhookParams 模型定义
shoucandanghehe cec6e4a
:memo: standardize docstrings for Application Commands section
shoucandanghehe 3289bb1
:memo: standardize docstrings for Interactions section
shoucandanghehe bb609c3
:memo: standardize docstrings for Application section
shoucandanghehe c649fdc
:memo: standardize docstrings for Audit Log and Auto Moderation sections
shoucandanghehe dea6352
:memo: standardize docstrings for Channel section
shoucandanghehe 113c370
:memo: standardize docstrings for Message section
shoucandanghehe 08c3b2b
:memo: standardize docstrings for Channel Operations section
shoucandanghehe 8316b70
:memo: standardize docstrings for Emoji section
shoucandanghehe 4bde8ab
:memo: standardize docstrings for Entitlement section
shoucandanghehe 1e22f67
:memo: standardize docstrings for Guild Core section
shoucandanghehe 028f2fa
:memo: standardize docstrings for Guild Members section
shoucandanghehe 596d1b6
:memo: standardize docstrings for Guild Bans, Roles, Prune section
shoucandanghehe 6ff7857
:memo: standardize docstrings for Guild Integrations/Widget/Welcome s…
shoucandanghehe 47605a8
:memo: standardize docstrings for Voice section
shoucandanghehe f44c706
:memo: standardize docstrings for Guild Scheduled Event section
shoucandanghehe 6ca9437
:memo: standardize docstrings for Guild Template section
shoucandanghehe 7b9b9e0
:memo: standardize docstrings for Invite, Poll, SKU sections
shoucandanghehe 9eae11c
:memo: standardize docstrings for Stage Instance and Sticker sections
shoucandanghehe 06dff0e
:memo: standardize docstrings for Subscription and User sections
shoucandanghehe e8fc16d
:memo: standardize docstrings for Webhook, Gateway, OAuth2 sections
shoucandanghehe d697398
:memo: standardize section comments format
shoucandanghehe 904def7
:memo: fix docstring format for deprecated method
shoucandanghehe ac47ecf
:memo: fix Discord docs links for moved or removed endpoints
shoucandanghehe 6db444b
:rotating_light: auto fix by pre-commit hooks
pre-commit-ci[bot] 4f6d96e
:bug: fix multipart payload dropping empty attachments list
shoucandanghehe 496a8c7
🔥 移除无用赋值
shoucandanghehe 7a695e0
:recycle: preserve UNSET falsy behavior in metaclass implementation
shoucandanghehe 44fa22f
:zap: cache inspect.signature results for API handlers
shoucandanghehe a522e97
:rotating_light: auto fix by pre-commit hooks
pre-commit-ci[bot] bb4efb4
:recycle: 移除一些不正确的继承关系
shoucandanghehe 57d398c
✨ 显式导出 UNSET
shoucandanghehe cada676
:recycle: 重构 UNSET 类及相关类型别名
shoucandanghehe 10651ff
:bug: 修复类型守卫不会正确收窄类型
shoucandanghehe fe5a29d
:bug: 修复 _sub_command_rule 中 Missing 类型的类型检查问题
shoucandanghehe 06687ce
:bug: 修复 on_*_command 函数参数的 Missing 类型问题
shoucandanghehe cae9c1b
🔧 Use `language: python` for pre-commit hook portability (#61)
Copilot efdac55
:bug: 修复 InteractionCreateEvent 中用户上下文检查逻辑
shoucandanghehe 66005d6
:bug: 修复命令参数解析中的 Missing 类型收窄
shoucandanghehe 692f33f
:bug: 修复 message 中 Missing 字段类型问题
shoucandanghehe 1323b01
:recycle: 移除 _call_api 对 legacy 参数兼容
shoucandanghehe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.