Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions Lagrange.Core/Common/Interface/OperationExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ public static Task<Dictionary<string, string>> FetchCookies(this BotContext cont
context.EventContext.GetLogic<OperationLogic>().FetchClientKey();

public static Task<List<BotFriend>> FetchFriends(this BotContext context, bool refresh = false) =>
context.CacheContext.GetFriendList(refresh);
context.CacheContext.ResolveFriends(refresh);

public static Task<List<BotGroup>> FetchGroups(this BotContext context, bool refresh = false) =>
context.CacheContext.GetGroupList(refresh);
context.CacheContext.ResolveGroups(refresh);

public static Task<List<BotGroupMember>> FetchMembers(this BotContext context, long groupUin, bool refresh = false) =>
context.CacheContext.GetMemberList(groupUin, refresh);
public static Task<List<BotGroupMember>?> FetchMembers(this BotContext context, long groupUin, bool refresh = false) =>
context.CacheContext.ResolveGroupMembers(groupUin, refresh);

public static Task<List<BotGroupNotificationBase>> FetchGroupNotifications(this BotContext context, ulong count, ulong start = 0) =>
context.EventContext.GetLogic<OperationLogic>().FetchGroupNotifications(count, start);
Expand Down
Loading
Loading