feat(bot): -with-birthday flag on member lists

This commit is contained in:
spiral
2022-09-22 17:29:34 +00:00
parent 47449ecbc7
commit 44fe3d538a
2 changed files with 9 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ public class ListOptions
public bool IncludeAvatar { get; set; }
public bool IncludePronouns { get; set; }
public bool IncludeDisplayName { get; set; }
public bool IncludeBirthday { get; set; }
public string CreateFilterString()
{
@@ -174,6 +175,7 @@ public static class ListOptionsExt
opts.IncludeAvatar,
opts.IncludePronouns,
opts.IncludeDisplayName,
opts.IncludeBirthday,
}.Sum(x => Convert.ToInt32(x)) > 1;
if (hasMultipleIncluded)