From 76a7d08da21ec158215dd56f23d11380a06c154c Mon Sep 17 00:00:00 2001 From: rladenson Date: Mon, 26 Aug 2024 14:01:53 -0600 Subject: [PATCH] alias: normalize aliases for birthday --- PluralKit.Bot/CommandMeta/CommandTree.cs | 2 +- PluralKit.Core/Models/Privacy/MemberPrivacySubject.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/PluralKit.Bot/CommandMeta/CommandTree.cs b/PluralKit.Bot/CommandMeta/CommandTree.cs index 1315305d..809eee0a 100644 --- a/PluralKit.Bot/CommandMeta/CommandTree.cs +++ b/PluralKit.Bot/CommandMeta/CommandTree.cs @@ -305,7 +305,7 @@ public partial class CommandTree await ctx.Execute(MemberPronouns, m => m.Pronouns(ctx, target)); else if (ctx.Match("color", "colour")) await ctx.Execute(MemberColor, m => m.Color(ctx, target)); - else if (ctx.Match("birthday", "bday", "birthdate", "cakeday", "bdate")) + else if (ctx.Match("birthday", "birth", "bday", "birthdate", "cakeday", "bdate", "bd")) await ctx.Execute(MemberBirthday, m => m.Birthday(ctx, target)); else if (ctx.Match("proxy", "tags", "proxytags", "brackets")) await ctx.Execute(MemberProxy, m => m.Proxy(ctx, target)); diff --git a/PluralKit.Core/Models/Privacy/MemberPrivacySubject.cs b/PluralKit.Core/Models/Privacy/MemberPrivacySubject.cs index a049a8e4..cf69b119 100644 --- a/PluralKit.Core/Models/Privacy/MemberPrivacySubject.cs +++ b/PluralKit.Core/Models/Privacy/MemberPrivacySubject.cs @@ -64,6 +64,8 @@ public static class MemberPrivacyUtils case "bday": case "birthdate": case "bdate": + case "cakeday": + case "bd": subject = MemberPrivacySubject.Birthday; break; case "pronouns":