Skip to content

refactor!: migrate to context parameters#13

Draft
Aliorpse wants to merge 2 commits intomainfrom
feat/context-parameters
Draft

refactor!: migrate to context parameters#13
Aliorpse wants to merge 2 commits intomainfrom
feat/context-parameters

Conversation

@Aliorpse
Copy link
Copy Markdown
Contributor

@Aliorpse Aliorpse commented Apr 3, 2026

迁移到 Conext Parameters,将在其稳定后合并。本 PR 有大量破坏性改动。

改动:

  • 部分扩展 API 从依赖接收者迁移到依赖上下文参数(XxxEnvironment),如 on command regex respond,使在不同的定义环境下调用的是同一个函数,减少代码量。
  • SaltifyCommandRequirmentContext 重命名为 CommandRequirementMatchRegisteredCommandInfo 重命名为 RegisteredCommand

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.

1 participant