Skip to content

Commit

Permalink
[OneBot] add missing attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored and Linwenxuan committed Nov 15, 2023
1 parent 99509d9 commit ef0958f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Lagrange.OneBot/Core/Entity/Notify/OneBotFriendRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Lagrange.OneBot.Core.Entity.Notify;

[Serializable]
public class OneBotFriendRequest(uint selfId, uint userId) : OneBotNotify(selfId, "friend_add")
{
[JsonPropertyName("user_id")] public uint UserId { get; set; } = userId;
Expand Down
1 change: 1 addition & 0 deletions Lagrange.OneBot/Core/Entity/Notify/OneBotGroupAdmin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Lagrange.OneBot.Core.Entity.Notify;

[Serializable]
public class OneBotGroupAdmin(uint selfId, string subType, uint groupId, uint userId) : OneBotNotify(selfId, "group_admin")
{
[JsonPropertyName("sub_type")] public string SubType { get; set; } = subType;
Expand Down
1 change: 1 addition & 0 deletions Lagrange.OneBot/Core/Entity/Notify/OneBotMemberDecrease.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Lagrange.OneBot.Core.Entity.Notify;

[Serializable]
public class OneBotMemberDecrease(uint selfId, string subType, uint groupId, uint operatorId, uint userId)
: OneBotNotify(selfId, "group_decrease")
{
Expand Down
1 change: 1 addition & 0 deletions Lagrange.OneBot/Core/Entity/Notify/OneBotMemberIncrease.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Lagrange.OneBot.Core.Entity.Notify;

[Serializable]
public class OneBotMemberIncrease(uint selfId, string subType, uint groupId, uint operatorId, uint userId)
: OneBotNotify(selfId, "group_increase")
{
Expand Down

0 comments on commit ef0958f

Please sign in to comment.