fix: actually pass group actioned/not actioned count properly to GenerateResponse

I hope this works. This code is all a mess. Refactor when?
This commit is contained in:
spiral 2021-09-06 19:26:47 -04:00
parent 023d2577e5
commit b71e97a5e9
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31
2 changed files with 2 additions and 2 deletions

View File

@ -471,7 +471,7 @@ namespace PluralKit.Bot
} }
else return; // otherwise toAction "may be undefined" else return; // otherwise toAction "may be undefined"
await ctx.Reply(GroupAddRemoveResponseService.GenerateResponse(op, members.Count, 1, members.Count - existingMembersInGroup.Count, existingMembersInGroup.Count)); await ctx.Reply(GroupAddRemoveResponseService.GenerateResponse(op, members.Count, 1, toAction.Count, members.Count - toAction.Count));
} }
public async Task ListGroupMembers(Context ctx, PKGroup target) public async Task ListGroupMembers(Context ctx, PKGroup target)

View File

@ -55,7 +55,7 @@ namespace PluralKit.Bot
} }
else return; // otherwise toAction "may be unassigned" else return; // otherwise toAction "may be unassigned"
await ctx.Reply(GroupAddRemoveResponseService.GenerateResponse(op, 1, groups.Count, groups.Count - existingGroups.Count, existingGroups.Count)); await ctx.Reply(GroupAddRemoveResponseService.GenerateResponse(op, 1, groups.Count, toAction.Count, groups.Count - toAction.Count));
} }
public async Task List(Context ctx, PKMember target) public async Task List(Context ctx, PKMember target)