Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] 修复 SetFriendRequest 参数类型错误 #729

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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