alias: normalize aliases for "pronouns"

This commit is contained in:
rladenson 2024-08-26 13:57:00 -06:00
parent d6231c4319
commit f170a2d597
3 changed files with 5 additions and 1 deletions

View file

@ -231,7 +231,7 @@ public partial class CommandTree
await ctx.CheckSystem(target).Execute<SystemEdit>(SystemServerTag, m => m.ServerTag(ctx, target)); await ctx.CheckSystem(target).Execute<SystemEdit>(SystemServerTag, m => m.ServerTag(ctx, target));
else if (ctx.Match("description", "desc", "bio", "info", "text")) else if (ctx.Match("description", "desc", "bio", "info", "text"))
await ctx.CheckSystem(target).Execute<SystemEdit>(SystemDesc, m => m.Description(ctx, target)); await ctx.CheckSystem(target).Execute<SystemEdit>(SystemDesc, m => m.Description(ctx, target));
else if (ctx.Match("pronouns", "prns")) else if (ctx.Match("pronouns", "pronoun", "prns", "pn"))
await ctx.CheckSystem(target).Execute<SystemEdit>(SystemPronouns, m => m.Pronouns(ctx, target)); await ctx.CheckSystem(target).Execute<SystemEdit>(SystemPronouns, m => m.Pronouns(ctx, target));
else if (ctx.Match("color", "colour")) else if (ctx.Match("color", "colour"))
await ctx.CheckSystem(target).Execute<SystemEdit>(SystemColor, m => m.Color(ctx, target)); await ctx.CheckSystem(target).Execute<SystemEdit>(SystemColor, m => m.Color(ctx, target));

View file

@ -68,6 +68,8 @@ public static class MemberPrivacyUtils
break; break;
case "pronouns": case "pronouns":
case "pronoun": case "pronoun":
case "prns":
case "pn":
subject = MemberPrivacySubject.Pronouns; subject = MemberPrivacySubject.Pronouns;
break; break;
case "meta": case "meta":

View file

@ -60,7 +60,9 @@ public static class SystemPrivacyUtils
subject = SystemPrivacySubject.Description; subject = SystemPrivacySubject.Description;
break; break;
case "pronouns": case "pronouns":
case "pronoun":
case "prns": case "prns":
case "pn":
subject = SystemPrivacySubject.Pronouns; subject = SystemPrivacySubject.Pronouns;
break; break;
case "members": case "members":