Skip to content

[Core & Milky] Implement group_invitation event#40

Merged
Executor-Cheng merged 4 commits into
LagrangeDev:mainfrom
Szzrain:group-invitation
Aug 18, 2025
Merged

[Core & Milky] Implement group_invitation event#40
Executor-Cheng merged 4 commits into
LagrangeDev:mainfrom
Szzrain:group-invitation

Conversation

@Szzrain
Copy link
Copy Markdown
Contributor

@Szzrain Szzrain commented Aug 18, 2025

No description provided.

Copilot AI review requested due to automatic review settings August 18, 2025 03:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a new group_invitation event system to handle group invitation notifications in both Core and Milky modules. The implementation adds event handling for when a bot receives group invitations through light app messages.

  • Adds new event classes and data structures for group invitations
  • Implements event parsing logic for light app messages containing group invitations
  • Integrates the new event into the existing event service and JSON serialization system

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
Lagrange.Core/Events/EventArgs/BotGroupInvitationEvent.cs New event class for group invitation events
Lagrange.Core/Message/Entities/LightAppEntity.cs New message entity for parsing light app messages
Lagrange.Core/Internal/Logic/PushLogic.cs Added logic to detect and parse group invitation messages
Lagrange.Milky/Entity/Event/GroupInvitationEvent.cs Event data structure for Milky API
Lagrange.Milky/Utility/EntityConvert.Event.cs Conversion logic between Core and Milky events
Lagrange.Milky/Event/EventService.cs Event service registration and handling
Lagrange.Milky/Utility/JsonUtility.cs JSON serialization registration
Lagrange.Milky/Utility/EntityConvert.Segment.cs Segment conversion for light app messages

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Comment thread Lagrange.Milky/Entity/Event/GroupInvitationEvent.cs Outdated
Comment thread Lagrange.Milky/Utility/EntityConvert.Event.cs Outdated
Comment thread Lagrange.Core/Internal/Logic/PushLogic.cs
Comment thread Lagrange.Core/Internal/Logic/PushLogic.cs
Comment thread Lagrange.Core/Internal/Logic/PushLogic.cs
Szzrain and others added 3 commits August 18, 2025 11:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@Executor-Cheng Executor-Cheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

谢谢dalao

@Executor-Cheng Executor-Cheng merged commit a55157a into LagrangeDev:main Aug 18, 2025
9 checks passed
@Szzrain Szzrain deleted the group-invitation branch August 18, 2025 08:46
Bemly pushed a commit to Bemly/CharonAnchor that referenced this pull request May 3, 2026
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.

3 participants