From 913e391c1a372374cf7a808d0c2d1f8eb5d0dcef Mon Sep 17 00:00:00 2001 From: Linwenxuan <116782992+Linwenxuan05@users.noreply.github.com> Date: Sat, 14 Oct 2023 12:52:14 +0800 Subject: [PATCH] Fixed FaceSegment --- Lagrange.OneBot/Core/Message/Entity/FaceSegment.cs | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lagrange.OneBot/Core/Message/Entity/FaceSegment.cs b/Lagrange.OneBot/Core/Message/Entity/FaceSegment.cs index 299ffb175..5f2fc877a 100644 --- a/Lagrange.OneBot/Core/Message/Entity/FaceSegment.cs +++ b/Lagrange.OneBot/Core/Message/Entity/FaceSegment.cs @@ -12,7 +12,7 @@ public FaceSegment() : this(0) { } [JsonPropertyName("id")] public string Id { get; set; } = id.ToString(); } -[SegmentSubscriber(typeof(FaceSegment), "face")] +[SegmentSubscriber(typeof(FaceEntity), "face")] public partial class FaceSegment : ISegment { public IMessageEntity ToEntity() => new FaceEntity(ushort.Parse(Id), false); diff --git a/README.md b/README.md index e99360e43..f677195a0 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Please use Lagrange.Core responsibly and in accordance with the law. | Message Segement| Support | | ------------ | ------------| | [Text] | 🟢 | -| [Face] | 🔴 | +| [Face] | 🟢 | | [Image] | 🟢 | | [Record] | 🔴 | | [Video] | 🔴 |