Skip to content

Commit

Permalink
[Core] Assign CacheHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan04 committed Mar 26, 2024
1 parent c483b14 commit f0ccf23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions KonataNT/Core/BaseClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ internal BaseClient(BotKeystore keystore, BotConfig config)
Config = config;
EventEmitter = new EventEmitter(this);
PacketHandler = new PacketHandler(this);
CacheHandler = new CacheHandler(this);
Logger = config.Logger ?? new DefaultLogger(EventEmitter);
}

Expand Down
2 changes: 1 addition & 1 deletion KonataNT/Core/CacheHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace KonataNT.Core;
/// <summary>
/// Caching Uid, <see cref="BotFriendContext"/>, <see cref="BotGroupContext"/>, <see cref="BotMemberContext"/>
/// </summary>
internal class CacheHandler(BotClient client)
internal class CacheHandler(BaseClient client)
{
private Dictionary<uint, BotFriendContext> Friends { get; } = new();

Expand Down

0 comments on commit f0ccf23

Please sign in to comment.