mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-17 11:10:13 +00:00
alias: normalize aliases for birthday
This commit is contained in:
parent
f170a2d597
commit
76a7d08da2
2 changed files with 3 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ public partial class CommandTree
|
|||
await ctx.Execute<MemberEdit>(MemberPronouns, m => m.Pronouns(ctx, target));
|
||||
else if (ctx.Match("color", "colour"))
|
||||
await ctx.Execute<MemberEdit>(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<MemberEdit>(MemberBirthday, m => m.Birthday(ctx, target));
|
||||
else if (ctx.Match("proxy", "tags", "proxytags", "brackets"))
|
||||
await ctx.Execute<MemberProxy>(MemberProxy, m => m.Proxy(ctx, target));
|
||||
|
|
|
|||
|
|
@ -64,6 +64,8 @@ public static class MemberPrivacyUtils
|
|||
case "bday":
|
||||
case "birthdate":
|
||||
case "bdate":
|
||||
case "cakeday":
|
||||
case "bd":
|
||||
subject = MemberPrivacySubject.Birthday;
|
||||
break;
|
||||
case "pronouns":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue