From 99b62f7c271f1afa8b5e090ffc158a4898ed1fae Mon Sep 17 00:00:00 2001 From: DarkRRb <177549718+DarkRRb@users.noreply.github.com> Date: Mon, 1 Sep 2025 14:52:03 +0800 Subject: [PATCH] [OneBot] Fix #877 --- .../Core/Operation/Group/SetGroupPortraitOperation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lagrange.OneBot/Core/Operation/Group/SetGroupPortraitOperation.cs b/Lagrange.OneBot/Core/Operation/Group/SetGroupPortraitOperation.cs index 2c896ac67..003ce4ee2 100644 --- a/Lagrange.OneBot/Core/Operation/Group/SetGroupPortraitOperation.cs +++ b/Lagrange.OneBot/Core/Operation/Group/SetGroupPortraitOperation.cs @@ -18,10 +18,10 @@ public async Task HandleOperation(BotContext context, JsonNode? pa { var image = CommonResolver.ResolveStream(portrait.File); if (image == null) throw new Exception(); - + var imageEntity = new ImageEntity(image); bool result = await context.GroupSetAvatar(portrait.GroupId, imageEntity); - return new OneBotResult(null, result ? 0 : 1, ""); + return new OneBotResult(null, result ? 0 : 1, result ? "ok" : "failed"); } throw new Exception();