Skip to content

Commit

Permalink
修复SetFriendRequest参数类型错误 (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellobaka authored Jan 7, 2025
1 parent 116c61f commit 07a5d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lagrange.Core/Common/Interface/Api/GroupExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static Task<bool> SetGroupRequest(this BotContext bot, BotGroupRequest re
public static Task<bool> SetGroupFilteredRequest(this BotContext bot, BotGroupRequest request, bool accept = true, string reason = "")
=> bot.ContextCollection.Business.OperationLogic.SetGroupFilteredRequest(request.GroupUin, request.Sequence, (uint)request.EventType, accept, reason);

public static Task<bool> SetFriendRequest(this BotContext bot, FriendRequestEvent request, bool accept = true)
public static Task<bool> SetFriendRequest(this BotContext bot, BotFriendRequest request, bool accept = true)
=> bot.ContextCollection.Business.OperationLogic.SetFriendRequest(request.SourceUid, accept);

public static Task<bool> GroupPoke(this BotContext bot, uint groupUin, uint friendUin)
Expand Down

0 comments on commit 07a5d28

Please sign in to comment.