fix: 修复setGgroupHighlights的命名为setGroupHighlights#562
Merged
yusheng929 merged 2 commits intomainfrom Oct 13, 2025
Merged
Conversation
Co-authored-by: sj817 <74231782+sj817@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix naming issue in setGgroupHighlights method
fix: 修复setGgroupHighlights的命名为setGroupHighlights
Oct 12, 2025
Contributor
|
你可以通过以下命令安装该版本: |
1 similar comment
Contributor
|
你可以通过以下命令安装该版本: |
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.
问题描述
在
AdapterOneBot类中,方法名setGgroupHighlights存在拼写错误,多了一个小写的 'g',导致方法名不符合命名规范,且与基类AdapterBase和接口定义AdapterType不一致。修复内容
将
packages/core/src/adapter/onebot/core/core.ts文件第 992 行的方法名从setGgroupHighlights修正为setGroupHighlights。修改前:
修改后:
验证
AdapterBase中的定义一致AdapterType中的定义一致pnpm run build:core成功构建,无编译错误此修复确保了代码的一致性和正确性,使群精华消息的设置/取消功能的接口命名符合规范。
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
registry.npmmirror.comnode /home/REDACTED/.npm/_npx/4876f32048baf8ac/node_modules/.bin/prebuild-install -r napi --pkg_version=5.1.7 --pkg_name=sqlite3(dns block)node /home/REDACTED/.npm/_npx/c65dbefa27d408e0/node_modules/.bin/prebuild-install -r node --pkg_version=0.12.0 --pkg_name=node-pty-prebuilt-multiarch(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Fixes #561
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.