refactor: move GroupAddRemoveResponseService into GroupMemberUtils
(it's not a service)
This commit is contained in:
		| @@ -466,7 +466,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, toAction.Count, members.Count - toAction.Count)); |             await ctx.Reply(GroupMemberUtils.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) | ||||||
|   | |||||||
| @@ -54,7 +54,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, toAction.Count, groups.Count - toAction.Count)); |             await ctx.Reply(GroupMemberUtils.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) | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ using PluralKit.Core; | |||||||
| 
 | 
 | ||||||
| namespace PluralKit.Bot | namespace PluralKit.Bot | ||||||
| { | { | ||||||
|     public static class GroupAddRemoveResponseService |     public static class GroupMemberUtils | ||||||
|     { |     { | ||||||
|         public static string GenerateResponse(Groups.AddRemoveOperation action, int memberCount, int groupCount, int actionedOn, int notActionedOn) |         public static string GenerateResponse(Groups.AddRemoveOperation action, int memberCount, int groupCount, int actionedOn, int notActionedOn) | ||||||
|         { |         { | ||||||
| @@ -10,7 +10,7 @@ namespace PluralKit.Tests | |||||||
|     public class GroupAddRemoveResponseTests |     public class GroupAddRemoveResponseTests | ||||||
|     { |     { | ||||||
|         private static Func<Groups.AddRemoveOperation, int, int, int, int, string> |         private static Func<Groups.AddRemoveOperation, int, int, int, int, string> | ||||||
|             func = GroupAddRemoveResponseService.GenerateResponse; |             func = GroupMemberUtils.GenerateResponse; | ||||||
|         private static Groups.AddRemoveOperation addOp = Groups.AddRemoveOperation.Add; |         private static Groups.AddRemoveOperation addOp = Groups.AddRemoveOperation.Add; | ||||||
|         private static Groups.AddRemoveOperation removeOp = Groups.AddRemoveOperation.Remove; |         private static Groups.AddRemoveOperation removeOp = Groups.AddRemoveOperation.Remove; | ||||||
|         private static string success = Emojis.Success; |         private static string success = Emojis.Success; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user