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();