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:
parent
023d2577e5
commit
b71e97a5e9
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user