Skip to content

Commit

Permalink
[OneBot] Fixed Visibility of Database to prevent from serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan authored and Linwenxuan committed Feb 11, 2024
1 parent c5a53a9 commit 1504f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lagrange.OneBot/Core/Message/SegmentBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Lagrange.OneBot.Core.Message;

public abstract class SegmentBase
{
public LiteDatabase? Database { get; set; }
public LiteDatabase? Database { protected get; set; }

public abstract void Build(MessageBuilder builder, SegmentBase segment);

Expand Down

0 comments on commit 1504f10

Please sign in to comment.