Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

Commit 24f962c

Browse files
authored
[OneBot] Fix #877 (#888)
1 parent 6b6838c commit 24f962c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lagrange.OneBot/Core/Operation/Group/SetGroupPortraitOperation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ public async Task<OneBotResult> HandleOperation(BotContext context, JsonNode? pa
1818
{
1919
var image = CommonResolver.ResolveStream(portrait.File);
2020
if (image == null) throw new Exception();
21-
21+
2222
var imageEntity = new ImageEntity(image);
2323
bool result = await context.GroupSetAvatar(portrait.GroupId, imageEntity);
24-
return new OneBotResult(null, result ? 0 : 1, "");
24+
return new OneBotResult(null, result ? 0 : 1, result ? "ok" : "failed");
2525
}
2626

2727
throw new Exception();

0 commit comments

Comments
 (0)