Correct grammar for switches (#491)

This commit is contained in:
poggingfish 2022-11-05 15:47:09 -05:00 committed by GitHub
parent fa625612ba
commit 9fdb2f36be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,9 +48,12 @@ public class Switch
if (members.Count == 0) if (members.Count == 0)
await ctx.Reply($"{Emojis.Success} Switch-out registered."); await ctx.Reply($"{Emojis.Success} Switch-out registered.");
else else if (members.Count == 1)
await ctx.Reply( await ctx.Reply(
$"{Emojis.Success} Switch registered. Current fronter is now {string.Join(", ", members.Select(m => m.NameFor(ctx)))}."); $"{Emojis.Success} Switch registered. Current fronter is now {string.Join(", ", members.Select(m => m.NameFor(ctx)))}.");
else
await ctx.Reply(
$"{Emojis.Success} Switch registered. Current fronters are now {string.Join(", ", members.Select(m => m.NameFor(ctx)))}.");
} }
public async Task SwitchMove(Context ctx) public async Task SwitchMove(Context ctx)
@ -150,8 +153,10 @@ public class Switch
// Tell the user the edit suceeded // Tell the user the edit suceeded
if (members.Count == 0) if (members.Count == 0)
await ctx.Reply($"{Emojis.Success} Switch edited. The latest switch is now a switch-out."); await ctx.Reply($"{Emojis.Success} Switch edited. The latest switch is now a switch-out.");
else if (members.Count == 1)
await ctx.Reply($"{Emojis.Success} Switch edited. Current fronter is now {newSwitchMemberStr}."); await ctx.Reply($"{Emojis.Success} Switch edited. Current fronter is now {newSwitchMemberStr}.");
else
await ctx.Reply($"{Emojis.Success} Switch edited. Current fronters are now {newSwitchMemberStr}.");
} }
public async Task SwitchDelete(Context ctx) public async Task SwitchDelete(Context ctx)