[Core] Add group member mute support - #913
Open
sweetymajo wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for muting individual group members by introducing a new OIDB service (OidbSvcTrpcTcp.0x1253_1), its request/response packet models, and wiring it into the internal operation logic with a public MessageExt API entry point.
Changes:
- Added
GroupMuteMemberServiceto send OIDB0x1253service1requests for member mute operations. - Added protobuf packet models (
D1253ReqBody/D1253RspBody) and protocol event request/response types for the operation. - Exposed
MuteGroupMemberthroughOperationLogicandMessageExt, including UID resolution via the member cache.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Lagrange.Core/Internal/Services/System/GroupMuteMemberService.cs | Implements the new OIDB service handler for group member mute requests. |
| Lagrange.Core/Internal/Packets/Service/Oidb_0x1253.cs | Adds protobuf request/response models for OIDB 0x1253_1. |
| Lagrange.Core/Internal/Logic/OperationLogic.cs | Adds MuteGroupMember operation, resolving targetUin -> uid via cache/member list refresh. |
| Lagrange.Core/Internal/Events/System/GroupMuteMemberEvent.cs | Defines protocol event request/response types for the new operation. |
| Lagrange.Core/Common/Interface/MessageExt.cs | Exposes MuteGroupMember as a BotContext extension API. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
This PR adds support for muting individual group members by exposing the MuteGroupMember API through MessageExt and implementing the corresponding operation event, service, and request packet using OidbSvcTrpcTcp.0x1253_1.
The implementation has been successfully built for all target frameworks supported.