Skip to content

Commit

Permalink
[All] fix disband subtype displayed as 129 (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkRRb authored Nov 3, 2024
1 parent 6061cc2 commit f726c96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Lagrange.Core/Event/EventArg/GroupMemberDecreaseEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public GroupMemberDecreaseEvent(uint groupUin, uint memberUin, uint? operatorUin
public enum EventType : uint
{
KickMe = 3,
Disband = 129,
Leave = 130,
Kick = 131
}
Expand Down
1 change: 1 addition & 0 deletions Lagrange.OneBot/Core/Notify/NotifyService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public void RegisterEvents()
string type = @event.Type switch
{
GroupMemberDecreaseEvent.EventType.KickMe => "kick_me",
GroupMemberDecreaseEvent.EventType.Disband => "disband",
GroupMemberDecreaseEvent.EventType.Leave => "leave",
GroupMemberDecreaseEvent.EventType.Kick => "kick",
_ => @event.Type.ToString()
Expand Down

0 comments on commit f726c96

Please sign in to comment.